On performance of Crystal Reports in .NET using C#
-
Hello, I am trying to connect a Crystal Report(an rpt file) to a Crystal Report viewer on run-time and using the ReportDocument object model as MSDN suggests. Please consider the following lines of code:
ReportDocument rptDoc = new ReportDocument(); rptDoc.Load("C:\\Report.rpt") ... CrystalRptViewer.SetReportSource(rptDoc);
When I execute my executable file, I observed that the application is rather slow for a very simple operation. When I debugged, I observed that the compiler spends around 5 seconds in the above section of the code. (When an instance of the ReportDocument class is created.) After research on google and Business Objects support forum, I saw that many people migrated to Crystal Reports 2008 has similar issues loading the report file. Is there any suggestions to improve performance here? Thank you -
Hello, I am trying to connect a Crystal Report(an rpt file) to a Crystal Report viewer on run-time and using the ReportDocument object model as MSDN suggests. Please consider the following lines of code:
ReportDocument rptDoc = new ReportDocument(); rptDoc.Load("C:\\Report.rpt") ... CrystalRptViewer.SetReportSource(rptDoc);
When I execute my executable file, I observed that the application is rather slow for a very simple operation. When I debugged, I observed that the compiler spends around 5 seconds in the above section of the code. (When an instance of the ReportDocument class is created.) After research on google and Business Objects support forum, I saw that many people migrated to Crystal Reports 2008 has similar issues loading the report file. Is there any suggestions to improve performance here? Thank you