views:

256

answers:

3

Hi

How i can Decrease the report file Loading Time? I Use this Code to Load a Report File

reportDocumnet.Load(reortFilePath);

but the first time loading is very long.

just in first time running this code

i want use a way to run this line of my code speedly

+3  A: 

Some people load a report in background thread on program startup. Then the massive crystal libraries will be loaded when user runs the first report.

dotjoe
that righti want use other wayspleaze help me
hosseinsinohe
A: 

How much time spent in the SQL/data plan generation? Can you create a view in your database to speed up the content resolution? Can you cache previously generated reports that have the same query parameters?

Jarrett Meyer
just this line of my code runing in long time(in first time) And this not realated to load data
hosseinsinohe
+1  A: 

To follow on with what has been said about preloading crystal libraries have a look at this article

http://www.google.co.uk/search?hl=en&source=hp&q=http%3A%2F%2Fwww.experts-exchange.com%2FDatabase%2FReporting_%2FCrystal_Reports%2FQ_24295843.html&btnG=Google+Search&meta=&aq=f&oq=

David
dotjoe
@dotjoe Bizarre! Changed link to ensure anyone using will reach answer. Thanks.
David