cancel
Showing results for 
Search instead for 
Did you mean: 

Performance question - 3 seconds for ReportDocument constructor?

Former Member
0 Kudos

Hey there,

when I run this code (intended to:

CrystalDecisions.CrystalReports.Engine.ReportDocument document = new ReportDocument();
document.Load("c:\\myreport.rpt");
ReportClientDocument newDoc = document.ReportClientDocument;

I notice that the first line, constructing a blank ReportDocument, takes roughly 3-4 seconds to run. Is this normal? Any time I create a ReportDocument is it supposed to take this long? Or is there a different, quicker way of going about this, getting a ReportClientDocument object from a report file?

Thanks!

John Goering

Accepted Solutions (1)

Accepted Solutions (1)

former_member183750
Active Contributor
0 Kudos

From my experience, that's quite normal.

Ludek

Former Member
0 Kudos

OK, bummer...thanks!

Answers (1)

Answers (1)

former_member208657
Active Contributor
0 Kudos

It usually has a delay the first time it is loaded. Subsequent loads are usually quick though.