guides:programming:programmers_reference_manual:pagesize_set_printer_message

PAGESIZE Set_Printer Message

The PAGESIZE message is used to change the width and height of the page. The width and height is the actual page size, and does not include the margins or indents, so the actual printable area is equal to the page height and width minus the margins and indents.

ParameterDescription of FieldsCommentsDefault
Parm1 - Style<1> Width 8.5
<2> Height 11
<3> PapersizeSee OIPRINT_EQUATESLetter

See the OIPRINT_EQUATES in the SYSPROCS table for more information on papersize equates.

Note: Note that either the width and height, or the papersize, should be specified; if width and height are specified, papersize is ignored.

Get_Printer PAGESIZE

/*The following example shows how to use the PAGESIZE message to specify the width and height of the page */

declare function Set_Printer

$insert OIPRINT_EQUATES

stat = Set_Printer("INIT") ;* Start printing

stat = Set_Printer("PAGESIZE", "8.5":@fm: "11")

* Print some text at top of the page

stat = Set_Printer("TEXT","This will print on 8.5x11 paper")

stat = Set_Printer("TERM") ;* End printing
  • guides/programming/programmers_reference_manual/pagesize_set_printer_message.txt
  • Last modified: 2024/06/19 20:20
  • by 127.0.0.1