Print a report from the client
Print a report from your client-side printer.
To send a report to a client-side printer, specify the SVG format (fgl_report_selectDevice("SVG")
) and call the fgl_report_configureSVGPreview()
function with one of these options:
ShowPrintDialog
- Pops up the print dialog, allowing the user to select and configure a printer.
PrintOnDefaultPrinter
- Prints the report silently on the default printer.
PrintOnNamedPrinter
- Prints the report silently on a specific printer.
Example
#Print 5 copies of the SVG report on myPrinter
IF fgl_report_loadCurrentSettings(reportname) THEN
CALL fgl_report_selectDevice("SVG")
CALL fgl_report_setSVGPrinterName("myPrinter")
CALL fgl_report_configureSVGPreview("PrintOnNamedPrinter")
CALL fgl_report_setSVGCopies(5)
LET HANDLER = fgl_report_commitCurrentSettings()
ELSE
EXIT PROGRAM
END IF