Skip to Content
Former Member
Jun 02, 2016 at 06:40 AM

Incorrect page number and Page header not displayed when exporting to PDF from Java



I am trying to export a crystal report(.rpt) to a PDF from java code. I use crystal report version 11, cr4e-all-in-one-win_2.0.18 , java 1.8 version.

The report is perfect when generated from SAP crystal report editor. But when I export it to PDF from java code, then page header section which includes a sub report in it is not displayed. Also the page numbers are incorrect. When I set the export format to (crystal report) in java code, page header is displayed and also page numbers are correct. Any reason for the PDF export not working correctly in java ?