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?
source share