>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).
lcReport = "ReportSelector.rptEmployeeList"
Dim RptType As Type = Type.GetType(lcReport)
Dim oReport As Object = Activator.CreateInstance(RptType)
Dim oPreview As New frmReportPreview(oReport)
oPreview.MdiParent = Me.MdiParent
oPreview.Show()
Del