string cReportName = "myreport.rpt"; CRAXDRT.Application CrApplication = new CRAXDRT.ApplicationClass(); CRAXDRT.Report oReport; oReport = CrApplication.OpenReport(@cReportName....)If you're using the Crystal Managed code DLLs, then it depends on whether you're using a strongly-typed report (the RPT is part of the project), or not (the RPT is not part of the project).
string cReportName = "MyScreen.RPT_MyReport"; // or just "RPT_MyReport" string DLLName = "MyDLL"; // depending on how your report is set up System.Reflection.Assembly oDLL; CrystalDecisions.CrystalReports.Engine.ReportClass oReport; oDLL = System.Reflection.Assembly.LoadFrom(DLLName); oReport = (CrystalDecisions.CrystalReports.Engine.ReportClass)oDLL.CreateInstance(cReportName); myForm.CrystalViewer.ReportSource = oReport;If you're not using a strongly-typed report, then it's a bit simpler:
ReportDocument oReport = new ReportDocument();
oReport.Load(cFileName);
myForm.CrystalViewer.ReportSource = oReport;
Hope this helps...