Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
| Search | Today's Posts | Mark Forums Read
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 10th, 2005, 03:21 PM
Authorized User
 
Join Date: Jun 2003
Location: St. Louis, Mo., USA.
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Default Question for the real tech lords.

Here is the issue, I have a program that needs to process one of several reports. All the reports are broken up into .net dll's (Assemblies) based upon the area the report displays (ie AP, AR ect..)

I want to do late binding to pull the required report instead of creating 20-30 different reports objects (one for each report).

In VB6 this would work using the 'CreateObject' on an ActiveX object, however as the dll's are .net Assemblies this does not work.

Does anyboby know how to do the same thing with .net Assemblies?

 
Old November 10th, 2005, 05:30 PM
Registered User
 
Join Date: Nov 2005
Location: Tampa, FL, USA.
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Use reflection technique in .Net. Because you already know the methods implemented in the assembly you can call those methods after loading them dynamically. Any reflection example will give you idea.

--Vijay.

 
Old November 10th, 2005, 09:51 PM
Authorized User
 
Join Date: Jun 2003
Location: St. Louis, Mo., USA.
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks took a little tinkering, and the test project works. Now for the real thing.







Similar Threads
Thread Thread Starter Forum Replies Last Post
Pro ASP Tech for webmasters grstad All Other Wrox Books 1 February 21st, 2007 12:04 PM
PHP real question jimmychuck BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 1 September 14th, 2004 11:58 AM
Chapter 8 - Toolbars (tech question) RobMeade BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 2 August 10th, 2004 11:40 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.