Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Crystal Reports Extremely slow at ReportDocument.Load()

Status
Not open for further replies.

TonyFoo

Programmer
Jul 2, 2008
21
CA
Hi All,

I am currently developing an application in Visual Studios 2005 that uses reports constructed in CR XI release 2. For some reason the reports seem to hang(completely stop loading) during the load() method. Here is my code:

private void ConfigurePPCReport()
{
ReportDocument PPC = new ReportDocument();
String reportName = "PPC Report.rpt";
string reportPath = Server.MapPath(reportName);
if (Session["Report"] == null)
{
PPC.Load(reportPath);

any help would be greatly appreciated.
 
What is the size of the .rpt file? Is "Save Data With Report" turned on? If so, turn it off.

The .Load method gets the report from the network location, loads it into memory, and parses it in order to fill all of the properties of the ReportDocument object. The things that generally have the greatest effect on how long it takes the .rpt to load are:

1. The first time any report is being loaded in an application will take longer than any subsequent report loads (even if the report is different) because all of the assemblies needed by a Crystal Report are being loaded into memory.

2. The size of the report - the bigger the .rpt file, the longer it will take to load.

3. Network latency - if the report is being loaded from a network drive instead of a local drive and there are connection or speed issues on the network, this will make it load more slowly.

-Dell

A computer only does what you actually told it to do - not what you thought you told it to do.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top