short Escape(hDC, ENABLEDUPLEX, sizeof(WORD),lpInData, NULL)
This escape enables the duplex printing capabilities of a printer. A device that possesses duplex printing capabilities is able to print on both sides of the output medium.
Parameter | Type/Description |
hDC | HDC Identifies the device context. | ||
lpInData | WORD FAR * Points to an unsigned 16-bit integer that specifies whether duplex or simplex printing is used. It may be one of the following values: | ||
Value | Meaning | ||
0 | Simplex | ||
1 | Duplex with vertical binding | ||
2 | Duplex with horizontal binding |
The return value specifies the outcome of the escape. It is 1 if the escape is successful. Otherwise, it is zero.
An application should use the QUERYESCSUPPORT escape to determine whether an output device is capable of creating duplex output. If QUERYESCSUPPORT returns a nonzero value, the application should send the ENABLEDUPLEX escape even if simplex printing is desired. This guarantees replacement of any values set in the driver-specific dialog box. If duplex printing is enabled and an uneven number of NEXTFRAME escapes are sent to the driver prior to the ENDDOC escape, the driver will eject an additional page before ending the print job.