Description
The DUPLEX message is used to set the duplex mode for the current printer. The Duplex is a value that is specified in the OIPRINT_EQUATES. Always check the return code from the DUPLEX message for errors, because not all printers support duplex printing.
With horizontal duplex printing, the top of both sides of the page are at the same end of the sheet. With vertical duplex printing, the bottom of one page is at the same end of the sheet as the top of the next page.
Syntax
errorStatus = Set_Printer( "DUPLEX", duplexType )
Parameters
Parameter | Comments | Default |
---|---|---|
duplexType | See OIPRINT_EQUATES 1= Simplex 2=Horizontal 3= Vertical |
See Also
Get_Printer function, Set_Printer function, DUPLEX Get_Printer message
Example
* The following example shows how to use the DUPLEX message. declare function Set_Printer stat = Set_Printer("INIT") ;* Start printing stat = Set_Printer("DUPLEX", 2) ;* set duplex to horizontal if stat < 0 then goto ErrorHandler ;* duplex is not supported end stat = Set_Printer("TERM") ;* End printing