Output as Browser (Swift)

Set up and configure output to a browser from your reporting application. The Browser option provides high fidelity viewing. Silent printing is not available; you must use the Print function in your browser.

To output your report to a browser, specify SVG in the selectDevice() function.
let rcPtr = createRuntimeConfiguration(reportDesignFileName)
selectDevice (rcPtr, SVG)

In addition to setting selectDevice() to SVG, the application will need to include the code to configure the display to a browser.

Device-specific configuration functions

Once you have specified SVG as the output, there are device-specific configuration functions available:
  • configureSVGDevice()
  • configureSVGPreview()
  • configureSVGCopies()
  • setSVGCompression()
  • setSVGPageRange()
  • setSVGPaperSource()
  • setSVGPrinterName()
  • setSVGOrientationRequested()
  • setSVGSheetCollate()

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.