Output as Rich Text Format (Swift)
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.
To output your report as a Rich Text Format (RTF) file, specify
RTF
(or
OORTF
for an OORTF device) in the selectDevice()
function.let rcPtr = createRuntimeConfiguration(reportDesignFileName)
selectDevice (rcPtr, RTF)
let rcPtr = createRuntimeConfiguration(reportDesignFileName)
selectDevice (rcPtr, OORTF)
The report file will be written to the current working directory, unless you specify another location through the use of environment variables or by using the C API within your Swift application.
Device-specific configuration functions
Once you have specified
RTF
as the output, there are device-specific
configuration functions available: configureRTFDevice()
setRTFMemoryThreshold()
Once you have specified
OORTF
as the output, there are device-specific
configuration functions available: configureOORTFDevice()
setRTFMemoryThreshold()
These functions should be included after calling
the selectDevice()
function but before calling the
createContentHandler()
function.
For the full list of available functions, refer to the Genero Report Writer C API documentation.