Click here to Skip to main content
16,022,402 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can I increase the performance of Loading Data in Crystal Report in asp.net?
It takes a long time to load data.
At first time of loading it takes time (because of query it takes time to fetch Records).
When the next or preview is clicked (page navigation...) also it takes the same time.
When the data can be loaded in the Report
When the report is opened in Firefox it is faster.


Sample Code

DataTable reportTable = GetSource();

if (reportPath != "" && reportTable != null)
{
    reportDoc.Load(@reportPath);
    reportDoc.SetDataSource(reportTable);
    crv.ReportSource = reportDoc;
}

In the page load the function is called each time the Records are loaded.

If I use above code in (!IspostBack) the paging is not working in the report.

How can I avoid them loading each time?



Kindly give me the solution
:(
Posted
Updated 14-Sep-10 2:54am
v2

The Posted code is not enough at least you should have posted the particular procedure or event.

Check this Slow load in Crystal reports[^]
 
Share this answer
 
Friends,

I found the solutions for that problem.

I stored the Report Document in Session and

i assinged the report Document to the Report Source.

Now it is faster.

the code is like that

if(!IspostBack)
{
// Fetch the source and
// Store the Report Doc in Session
}
if(Session["ReportDoc"] != null)
{
//Assign the Report Document alone in the Crystal Report Source
}


Thanks!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900