Skip to Content
author's profile photo Former Member
Former Member

ReportDocument Taking too long time to load

in my code, i have written the below code to load report,

dim cryrpt as New ReportDocument

But it is taking more time to process the above below. I have the above variable declared before the form load and because of that it is taking too long time to load the form, Where ever i place the above line, it is taking more time to process.

can anyone help me on how to load it faster?

Thank you.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Dec 17, 2013 at 11:11 AM

    Hi Swetha,

    Need more info.

    - CR version with patch level?

    - VS version?

    - Win or a web app?

    Try below steps.

    - Create a brand new app, put below code in page load.

    - First load a blank report, see how long does it take..

    - Then load sample 'Worled Sales Report'.

    - Load your report.

    Here is the code.

    Dim rd as new ReportDocument()


    CrystalReportsViewer1.Reportsource = rd



    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 17, 2013 at 03:15 PM

    1. Make sure that "Save Data with Report" is turned off - it is on by default.

    2. If you're running from a .NET application, the first time that you load a report, all of the required Crystal assemblies have to load into memory. This takes time. I suspect that the second time you load a report in the same run of your application it will run much faster.


    Add a comment
    10|10000 characters needed characters exceeded

    • Start the CR designer. Go to File | Open, browse to your report. Select "Open". Time from here. Don't use a saved data report... Login to the database, time that.

      Now realize that the CRW designer is C++ based, your app uses the CR assemblies for VS. So, there will be differences.

      One thing I am still not sure of; are we talking first report load, or subsequent report loads? Do you see a difference between 1st and 2nd report load?

      - Ludek

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.