>>I just want to invoke a form based on what is listed in a table. My program would be too long if I have 300 reports and still will grow I am sure of that, and these are form based. Initially, I use switch
and as I have said it's not flexible enough to accommodate additional reports long term especially adhoc reports without much developers intervention.
>
>Here's some stuff I've been working on in VB (using reflection).
>
>> 'Assume we're loading this variable from a table
> lcReport = "ReportSelector.rptEmployeeList"
>
> Dim RptType As Type = Type.GetType(lcReport)
>
> Dim oReport As Object = Activator.CreateInstance(RptType)
>
> 'Display report in report preview form
> Dim oPreview As New frmReportPreview(oReport)
> oPreview.MdiParent = Me.MdiParent
> oPreview.Show()
>
Would that be near similar in C#.Net program?
JESS S. BANAGA
Project Leader - SDD division
...shifting from VFP to C#.Net
CHARISMA simply means: "Be more concerned about making others feel good about themselves than you are in making them feel good about you."