Click here to Skip to main content
15,892,927 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Expert,

My crystal report is working fine. But it very slow at the first time.
Is Backgroundworker the solution. Some body tells us to load a dummy report before its execution. But how to load a dummy report?


Regards,

Anil Kumar
Posted
Comments
DamithSL 25-Jan-15 10:26am    
what you doing in first time and second time?
have you debug and check whether you are executing same activities in both times or not?
anil_kumar_bhakta 25-Jan-15 11:06am    
yes. it is the same activity.

1 solution

A very likely reason is that the time required to run the first report is high because all the necessary dll's etc need to be loaded. Basically you cannot remove this time but you can run some report in background when the program starts. This can be done in a background worker so that it doesn't affect the main program.

The report itself doesn't matter. Just create an empty report and run it in the background and close it as soon as the report is ready. The whole point is to get the dll's loaded so that when an actual report is run all the necessary assemblies are found in memory.
 
Share this answer
 
Comments
anil_kumar_bhakta 27-Jan-15 0:14am    
I fully agree with you. But how to load blank report in bankgroundworker. Please guide me.

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