cancel
Showing results for 
Search instead for 
Did you mean: 

Can I programmatically change the report pagesize or display format?

Former Member
0 Kudos

I have developed a crystal report and ***-viewer.jsp. The crystal report is set to use A3 page size.

After deployed to the web application, it's keeping as A4 page size.

So my crystal report content is cut.

I have try to add this code:

crystalReportPageViewer.setBestFitPage(true);

crystalReportPageViewer.setPrintMode(CrPrintMode.fromString("PDF"));

However, it doesn't take any effect to fit the content to page correctly.

And it's not displaying as PDF mode. That is also strange.

It's still showing in page viewer.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

If you would like the viewer to display in PDF mode, you need to use the exporting API to do this. You can use the PrintOutputController object, which allows you to access the other objects necessary to export. If you want to see if it will display in the PDF correctly, try exporting from the viewer first by clicking on the export button.

As for the page size, this is a known issue with the JRC. It has been fixed in the next version of the product, which will be released later this year.

For more information, keep checking the Business Objects portal on http://www.sdn.sap.com for news and download information.

Answers (0)