Skip Crystal Report report object for report is not a physical file

How to pass a dynamic class name Crystal Report ReportDocument.

eg.

ReportDocument rpt; rpt = new ReportDocument(); rpt.Load(filepath); 

but i need to use

 ReportDocument rpt; rpt = new CrystalReport1(); // CrystalReport1 is report name 

But I need to pass "CrystalReport1" dynamically, so dynamically it creates a Report object. How can i do this?

+4
source share
1 answer

I received the answer myself, please check below.

 CrystalReport obj = new CrystalReport(); ReportDocument rpt = (ReportDocument)obj; 
+4
source

All Articles