Create a Microsoft RTF report
Set up and configure output to Rich Text Format (RTF) from your reporting application. This option is useful if you want to edit your report after output.
Use fgl_report_selectDevice("RTF")
to output the data in
RTF format. Configure the output using fgl_report_configureRTFDevice
.
In order to prevent exhaustion of main memory when processing large documents, the processor can
be instructed to swap parts of the document to a temporary disk file when the document
size exceeds a threshold. Use the fgl_report_setRTFMemoryThreshold
function to specify
the threshold.
Example
#Produce an RTF document that contains pages 1 to 5 only
IF fgl_report_loadCurrentSettings(reportname) THEN
CALL fgl_report_configureRTFDevice(1,5,NULL,NULL)
CALL fgl_report_selectDevice("RTF")
LET HANDLER = fgl_report_commitCurrentSettings()
ELSE
EXIT PROGRAM
END IF