The information in this article applies to:
SUMMARYVersions 3.52 and later of the PostScript driver for Microsoft Windows 3.1x (PSCRIPT.DRV) implements four new printer escape functions: OPENCHANNEL, DOWNLOADHEADER, CLOSECHANNEL, and SETGDIXFORM. The text below documents these four new printer escape functions. MORE INFORMATIONThe numerical values for the four new printer escape functions are as follows:
OPENCHANNELAn application can use the OPENCHANNEL printer escape in conjunction with the PASSTHROUGH printer escape to send data directly to the printer. The OPENCHANNEL printer escape prevents the PostScript driver from downloading a PostScript header to the printer.Note: To use this printer escape, an application must have complete information about how the particular printer operates. Returns:Greater than zero if the printer escape is successful. This value is less than or equal to zero if the printer escape is not successful or not implemented.Comments: Send an OPENCHANNEL printer escape before sending any data to the printer. The OPENCHANNEL printer escape is an alternative to the STARTDOC printer escape; each print job uses either one, not both. DOWNLOADHEADERAn application uses the DOWNLOADHEADER printer escape to download one of four PostScript headers to the printer. The lpInData parameter contains a pointer to a WORD value that specifies the desired header. Returns:TRUE if the printer escape is successful. FALSE if the printer escape is not successful or not implemented.Comments: If lpInData == NULL, or if lpInData points to a WORD that contains a value other than one of the four choices listed below, the DOWNLOADHEADER printer escape will select a header depending on the current state of the DEVMODE data structure and the printer escapes previously issued by the application.The lpInData parameter points to a WORD that contains one of the following four values:
CLOSECHANNELThe CLOSECHANNEL printer escape closes the printer channel opened by the OPENCHANNEL printer escape. Returns:Greater than zero if the printer escape is successful. This value is less than or equal to zero if the printer escape is not successful or not implemented. SETGDIXFORMThe SETGDIXFORM printer escape sends an /SM command to the printer to transform the printer coordinates to the default GDI coordinate system. Returns:Greater than zero if the printer escape is successful. This value is less than or equal to zero if the printer escape is not successful or not implemented.Comments: The SETGDIXFORM printer escape sets the printer to "Portrait Mode without Mirroring" mode regardless of the settings in the Advanced Options dialog box. Additional query words: 3.10
Keywords : |
Last Reviewed: November 1, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |