fgl_report_setPrinterDestinationUrl

Specify an alternate destination for the spooled printer formatted data.

Syntax

fgl_report_setPrinterDestinationUrl(
   destination STRING )
  1. destination - the destination URL.

Usage

Function to specify an alternate destination for the spooled printer formatted data.

A URL indicating an alternate destination for the spooled printer formatted data. Some print services do not support a destination other than the printer device and so do not support this attribute. This attribute is typically used by applications that redirect output to a local disk file, for example, file:out.prn. A more platform-independent method is to set the fgl_report_setPrinterName to "stdout" so that postscript is written to stdout, or to specify the fgl_report_setPrinterwriteToFile attribute which causes postscript to be written to the specified file. Another alternative is to use fgl_report_selectDevice to generate a PDF file .

By default, the destination URL is not set. Setting this option reduces the set of usable printers to those matching it.

For an example of Genero code using a reporting function, see Using report output functions. This example may not use the specific function discussed in this topic, however it provides details on where you would place this (and other) report output functions.