skip to main content

Library Routines : WIN$PRINTER : WINPRINT-SET-PAGE-COLUMN

WINPRINT-SET-PAGE-COLUMN
The WINPRINT-SET-PAGE-COLUMN function defines a column in a page. When a page is divided into columns the program can use a single WRITE statement to print the content of all columns at a time. The content of the print buffer is placed into columns according to the settings defined with the WINPRINT-SET-DATA-COLUMNS function. This function must be called repeatedly specifying one column configuration at a time. Each time this function is called, it adds the column configuration passed to a list. To clear that list, use the WINPRINT-CLEAR-PAGE-COLUMNS function.
Syntax:
 CALL "WIN$PRINTER" USING WINPRINT-SET-PAGE-COLUMN
Parameters:
01  winprint-column.
    03 winprint-col-start      pic 9(7)v99 comp-5.
    03 winprint-col-indent     pic 9(7)v99 comp-5.
    03 winprint-col-separation pic 9(7)v99 comp-5.
    03 winprint-col-font       handle of font.
    03 winprint-col-units      pic 99 comp-x.
    03 winprint-col-alignment  pic x.
    03 winprint-transparency   pic 99 comp-x.
       88 winprint-transparent value 1false 0.
If no columns are defined or a column is not transparent, the text background is white, not transparent. This means that when the program prints several buffers on the same line, with the NO ADVANCING phrase of the WRITE statement, the space characters in the buffer cover the text previously printed at the same location. This did not happen on dot-matrix printers. To avoid this behavior, set the column transparent.
Return code:
returnCode can be any signed numeric data item and provides additional information:

Copyright (c) 2017 Veryant
Contact us
Please share your comments on this manual or on any
Veryant product documentation with the email button at the top left