Create an Image report
Set up and configure output to image files from your reporting application. This option is useful for archiving.
Use fgl_report_selectDevice("Image")
to output the data in
Image format. Configure the output using fgl_report_configureImageDevice
.
The following functions provide more Image options:
fgl_report_setImageShrinkImagesToPageContent
- Configure image cropping.fgl_report_setImageUsePageNamesAsFileNames
- Configure image filename generation.
Example
#Save the report as PNG files in the "C:\MyProject\images\" directory with the filename prefix "img_"
IF fgl_report_loadCurrentSettings(reportname) THEN
CALL fgl_report_configureImageDevice (NULL, NULL, NULL, NULL, NULL, "png", "C:\\MyProject\\images", "img_", NULL)
CALL fgl_report_selectDevice("Image")
LET HANDLER = fgl_report_commitCurrentSettings()
ELSE
EXIT PROGRAM
END IF