Skip to Content
0
Former Member
Mar 22, 2009 at 12:29 PM

Crystal Report Viewer takes lots time to show preview

45 Views

Hi

I am using Crystal XI R2.

I have a reporting system in placed in my application where we use DataSets to generate reports.

We fills the dataset with required data, and asign this DS to the reportdoc loaded using filename.

Following is the code to load rpt file where reportTemplate is the file name of .prt.

reportDocument.Load(reportTemplate);

Following is the code to asign the filled dateset.

reportDocument.SetDataSource(ds);

When i select huge data around 2000 records in data set entire process takes around 3 min. outof this only around 20 sec is taken by dataset filling logic. Where as to crystalreportviwer takes around 2.5 mins to show the report preview.

I am using VS2005 and CRystal Report XIR2.

Please suggset is there any other faster way to load report template in crystal report viewer.