I know how to create a crystal report object of an instance of a "typed-report".

but how would I create an instance of a "null" crystal report, and then assign a report to that variable at run time.

like so:

vb Code:
  1. Dim myReport as CrystalReportObject ' obviously CrystalReportObject isn't a class, but I want to implement the idea.
  2.  
  3. If a = 0 Then
  4. myReport = myCrystalReport1
  5. End If

Thanks,

Justin Fox