Friday, March 23, 2012

PDF bookmarks

Hi all,
I need help. I want to have bookmarks in my report after exporting to pdf format. How to do this?
Using: CR 11 R2, JRC for exporting
Thanks for replyOK found something...

class: com.crystaldecisions.sdk.occa.report.exportoptions.PDFExport FormatOptions

code:
PDFExportFormatOptions pdfOptions = new PDFExportFormatOptions();
pdfOptions.setCreateBookmarksFromGroupTree(true);
ExportOptions exportOptions = new ExportOptions();
exportOptions.setExportFormatType(ReportExportFormat.PDF );
exportOptions.setFormatOptions(pdfOptions);

But after invoking printOutputController.export(exportOptions) the report is without bookmarks. Pdf built via Crystal reports HAS bookmarks.

Can anybody tell me what am I doing wrong?

Peter

No comments:

Post a Comment