CALL "WIN$PRINTER" USING WINPRINT-SET-CUSTOM-PAPER paperWidth paperHeight units GIVING returnCode |
WINPRINT-SET-CUSTOM-PAPER | Constant | |
paperWidth | any numeric data item or numeric literal | Specifies the paper width. |
paperHeight | any numeric data item or numeric literal | Specifies the paper height. |
units | any numeric data item or numeric literal | Specifies the measurement unit for the paperWidth and paperHeight values. Valid values are 1 (inches) and 2 (centimeters). The constants WPRTUNITS-INCHES and WPRTUNITS-CENTIMETERS defined in isprint.def can be used. |
1 | Operation successful. |
WPRTERR-UNSUPPORTED | The WIN$PRINTER library routine is not supported. |
WPRTERR-BAD-ARG | The WIN$PRINTER library routine has been called with bad parameters. |