fgl_report_setPrinterMediaSizeName

Select the media size to be used.

Syntax

fgl_report_setPrinterMediaSizeName(
   mediaSizeName STRING )
  1. mediaSizeName - one of: a|b|c|d|e|executive|folio|invoice |iso-a0|iso-a1|iso-a2|iso-a3|iso-a4|iso-a5|iso-a6|iso-a7|iso-a8|iso-a10|iso-b0 |iso-b1|iso-b2|iso-b3|iso-b4|iso-b5|iso-b6|iso-b7|iso-b8|iso-b10|iso-c0|iso-c1 |iso-c2|iso-c3|iso-c4|iso-c5|iso-c6|iso-designated-long|iso-italian-envelope |iso-oufuko-postcard|jis-b0|jis-b1|jis-b2|jis-b3|jis-b4|jis-b5|jis-b6|jis-a7 |jis-b8|jis-b10|ledger|monarch-envelope|na-10x13-envelope|na-10x14-envelope |na-10x15-envelope|na-5x7|na-6x9-envelope|na-8x10|na-9x11-envelope |na-9x12-envelope|na-legal|na-letter|na-number-10-envelope|na-number-11-envelope |na-number-12-envelope|na-number-14-envelope|na-number-9-envelope |personal-envelope|quarto|tabloid

Usage

Function to select the media size to be used.

Selects the media size to be used. Normally this does not need to be specified, as the program will automatically select the smallest media onto which the current document can be printed without clipping or scaling. This function and the functions fgl_report_setPrinterMediaTray and fgl_report_setPrinterMediaName are mutually exclusive. Default value not set (is automatically selected). Setting this option reduces the set of usable printers to those matching it.

Fails if the argument is not one of the specified values.

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.