Output to a printer (Swift)

Set up and configure output to a printer from your reporting application.

To output your report as a PDF file, specify Printer in the selectDevice() function.

let rcPtr = createRuntimeConfiguration(reportDesignFileName)
selectDevice (rcPtr, Printer)

Provide the printer configuration details using the C API within your Swift application.

Device-specific configuration functions

Once you have specified Printer as the output, there are device-specific configuration functions available:
  • setPrinterName()
  • setPrinterChromaticity()
  • setPrinterCopies()
  • setPrinterDestinationUrl()
  • setPrinterFidelity()
  • setPrinterJobImpressions()
  • setPrinterJobMediaSheets()
  • setPrinterJobName()
  • setPrinterJobPriority()
  • setPrinterJobSheets()
  • setPrinterMediaSizeName()
  • setPrinterMediaName()
  • setPrinterMediaTray()
  • setPrinterNumberUp()
  • setPrinterOrientationRequested()
  • setPrinterPageRanges()
  • setPrinterResolution()
  • setPrinterRequestingUserName()
  • setPrinterPrintQuality()
  • setPrinterSheetCollate()
  • setPrinterSides()
  • setPrinterWriteToFile()

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.