


This operation code determines how many lines will fit on a page.
Usage
CALL "WIN$PRINTER"
USING WINPRINT-GET-PAGE-LAYOUT, WINPRINT-DATA,
GIVING RESULT
Parameters
WINPRINT-DATA Group item defined in "winprint.def" as follows:
01 WINPRINT-DATA.
03 WPRTDATA-SET-STD-FONT.
03 WPRT-PAGE-LAYOUT REDEFINES
WPRTDATA-SET-STD-FONT.
05 WPRTDATA-LINES-PER-PAGE UNSIGNED-SHORT.
05 WPRTDATA-COLUMNS-PER-PAGE UNSIGNED-SHORT.
Return Values
This operation returns the number of print rows that can fit on a page in WPRTDATA-LINES-PER-PAGE, and the number of print columns in WPRTDATA-COLUMNS-PER-PAGE. This accounts for the current page size, orientation, and printer font. You may use this routine either before or after opening a print file.