skip to main content

Library Routines : WIN$PRINTER : WINPRINT-SET-MARGINS

WINPRINT-SET-MARGINS
The WINPRINT-SET-MARGINS function changes the page margins. Margins are applied at the close of the print file and affect all the pages of the print job. If this function is called multiple times within the same print job, only margins set by the last call are considered.
Syntax:
 CALL "WIN$PRINTER" USING WINPRINT-SET-MARGINS
Parameters:
01  winprint-data.
    03 wprtdata-margins.
       05 wprtdata-top-margin       pic 9(7)v99 comp-5.
       05 wprtdata-bottom-margin    pic 9(7)v99 comp-5.
       05 wprtdata-left-margin      pic 9(7)v99 comp-5.
       05 wprtdata-right-margin     pic 9(7)v99 comp-5.
       05 wprtdata-margin-units     unsigned-short.
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