cancel
Showing results for 
Search instead for 
Did you mean: 

Export to PDF Error in CR Viewer

Former Member
0 Kudos

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?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

My application audits session creation/destruction and after reviewing the logs I am sure that session expiration did not cause this problem.

Thanks for the information.

Former Member
0 Kudos

Hi guys ,

Sorry to switch the subject a little bit , but i have a question regarding always the extraction to PDF, can you please advice if there is a standard way to save some fianancial reports (suppliers propositions of payments) into a PDF file ?

it would be great if i can have an answer to this question.

Thanks in advance,

Temsamrajis

Former Member
0 Kudos

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

Answers (0)