Date: Thu, 28 Mar 2024 09:07:09 -0700 (PDT) Message-ID: <1129900745.239.1711642029979@wiki.srpcs.com> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_238_1943632873.1711642029979" ------=_Part_238_1943632873.1711642029979 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
The DUPLEX message is used to set the duplex mode for the current printe= r. The Duplex is a value that is specified in the OIPRINT_EQUATES. Always c= heck the return code from the DUPLEX message for errors, because not all pr= inters support duplex printing.
With horizontal duplex printing, the top of both sides of the page are a= t the same end of the sheet. With vertical duplex printing, the bottom of o= ne page is at the same end of the sheet as the top of the next page.
errorStatus =3D Set_Printer( "DUPLEX", duplexType )
Parameter | Comments | Default |
---|---|---|
duplexType | See OIPRINT_EQUATES 1=3D Simplex 2=3DHorizontal 3= =3D Vertical |
Get_Printer function<= /a>, Set_Printer fu= nction, = DUPLEX Get_Printer message
* The following ex= ample shows how to use the DUPLEX message. declare function Set_Printer stat =3D Set_Printer("INIT") ;* Start printing stat =3D Set_Printer("DUPLEX", 2) ;* set duplex to horizontal if stat < 0 then goto ErrorHandler ;* duplex is not supported end stat =3D Set_Printer("TERM") ;* End printing