Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Crystal Reports XI PDF Export Options

Can someone point me to a list of the ExportOptions for a PDF? I'm trying to print a report and export it to a PDF and I'm running into the "page header and page footer too big for the page" error. I'm able to generate the printout fine, but the PDF is giving me the error. Code is wrriten in Progress 4GL.

An additional question that has me even more perplexed. This code generates the printout correctly on one server but no PC, and on my PC it generates the PDF but not the printout. Any ideas on that one?

IF SEARCH(cStartDirectory + "BOLTEST.rpt") EQ ? THEN DO:

MESSAGE "Could not find report: " + cStartDirectory + "BOLTEST.rpt".



chCrystalRep = chCrystalApp:OpenReport(cStartDirectory + "BOLTEST.rpt",1).

/* Generate PDF */

chCrystalRep:ExportOptions:DestinationType = 1.

chCrystalRep:ExportOptions:DiskFileName = cExportLoc + "boltest.pdf".

chCrystalRep:ExportOptions:FormatType = 31.

chCrystalRep:ExportOptions:PDFExportAllPages = TRUE.

chCrystalRep:DisplayProgressDialog = TRUE.


/* Print Copy */

chCrystalRep:SelectPrinter(cDriverName, cPrinterName, cPort).




Not what you were looking for? View more on this topic or Ask a question