#define ENDDOC 11 |
short Control(lpDevice, ENDDOC, NULL, NULL) | |||
LPPDEVICE lpDevice; |
The ENDDOC escape ends a print job that is started by a STARTDOC escape and that is to be ended in a standard way, instead of stopping the job in the middle of the process.
lpDevice
Points to a PDEVICE structure specifying the destination device.
The return value is positive if the escape is successful. Otherwise, it is negative.
When a printing error occurs, the ENDDOC escape should not be used to terminate the printing operation.