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

Export to PDF Error in CR Viewer

I have an intermittent problem exporting to PDF from the Crystal Reports Viewer. I'm using the Java Runtime and the report displays fine in the view. I then click the Export button, select PDF, and click Export. The view screen becomes blank with the single word "Error".

I see nothing in the Crystal Logs.

The timeout in CRConfig.xml is set to 1 minute and JavaServerTimeOut is set to 300. No other values are specified.

Any ideas of what the problem could be or additional tests to try?

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 06, 2010 at 06:03 AM

    Hi,

    I had faced this issue previously.

    This basically happens because your session is expiring in the web server. Try to increase the timeout session to 30 minutes and the print option will work just fine.

    Also you would have noticed that the data does not gets refreshed from the source if you are not ending the session. But for this you can enable the refresh button on the Web Viewer using the following option:

    
    CrystalReportViewer crystalReportPageViewer = new CrystalReportViewer();
    crystalReportPageViewer.setHasRefreshButton(true);
    
    

    Once the refresh option has been enabled then there is no need to kill any session in order to refresh the report the refresh button can only be clicked for that .

    Please let me know in case the issue has been resolved.

    Thanks and Regards,

    Gourav

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      As per your comment provided by you "CRConfig.xml is set to 1 minute" the session has to expire within 1 minute.

      Anyways, in case the current question is to find out how automated PDF's can be scheduled and generated via crystal reports, please post a new question otherwise you might not end up getting the right answers

      Gourav

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.