There are a couple of ways to do it depending on how your objects are
ste up. But you can use reflection to instaniate an arbitrary object
or call an arbitrary method.
Here's an example of loading a class that inherit from SomeBaseClass
Dim a as [Assembly]
Dim ub as SomeBaseClass
a = [Assembly].ExecutingAssembly
ub = a.CreateInstance("SomeClass")
MethodInvoke is probably what you are looking for. Check out the
MethodInfo class.
On 12/16/05, Stephen Russell <[EMAIL PROTECTED]> wrote:
>
>
>
>
> I have a call for a report for my report object below:
> oReport = new TGIWeb.ReportsProd.ReprintSummaryRPT();
>
> How can I get a text string from a database to replace
> "TGIWeb.ReportsProd.ReprintSummaryRPT()"
>
> I hate hard coding reports in app code! :)
>
> TIA
>
> Stephen Russell
> DBA/Developer
> Transaction Graphics Inc.
>
> Office: 901.312.7621
> Fax: 901.312.7655
>
> [EMAIL PROTECTED]
>
>
> This message is intended exclusively for the individual or entity to which it
> is addressed. This communication may contain information that is
> proprietary, privileged or confidential or otherwise legally prohibited from
> disclosure. If you are not the named addressee, you are not authorized to
> read, print, retain, copy or disseminate this message or any part of it. If
> you have received this message in error, please notify the sender immediately
> by e-mail and delete all copies of the message.
>
>
> This message has been scanned by Modus Gate Anti-Virus/Spam technology.
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
--
Dean Fiala
Very Practical Software, Inc
http://www.vpsw.com
------------------------ Yahoo! Groups Sponsor --------------------~-->
Most low income homes are not online. Make a difference this holiday season!
http://us.click.yahoo.com/5UeCyC/BWHMAA/TtwFAA/saFolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/