Create a PDF report
Set up and configure output to PDF from your reporting application. This option is useful if you want to archive or mail a document.
Use fgl_report_selectDevice("PDF")
to output the data in
PDF format. Configure the output using fgl_report_configurePDFDevice
.
The following functions provide more PDF options:
fgl_report_configurePDFFontEmbedding
- Configure the font embedding in PDF output.fgl_report_setPDFImageResolution
- Configure the resolution of embedded images in PDF output.fgl_report_setPDFJPEGImageEncoding
- Configure the encoding method of embedded images in PDF output.
Example
#Set font directory
IF fgl_report_loadCurrentSettings(reportname) THEN
CALL fgl_report_configurePDFDevice("C:\Fonts\ForPDF",NULL,NULL,NULL,NULL,NULL)
CALL fgl_report_selectDevice("PDF")
LET HANDLER = fgl_report_commitCurrentSettings()
ELSE
EXIT PROGRAM
END IF