EPSPRINTING

  #define EPSPRINTING 33    

  short Control(lpDevice, EPSPRINTING, lpBool, NULL)    
  LPPDEVICE lpDevice;    
  LPBOOL lpBool;    

The EPSPRINTING escape only controls the downloading of the control portions of the PostScript prolog. It sets up the portrait versus landscape orientation and leaves the printer in the default 72 dpi user space.

Parameters

lpDevice

Points to a PDEVICE structure specifying the destination device.

lpBool

Points to a 16-bit variable specifying whether to enable or disable encapsulated PostScript (EPS) printing. If it is TRUE, EPS printing is enabled. If FALSE, EPS printing is disabled.

Return Value

The return value is positive, if successful. Otherwise, it is zero if the escape is not implemented, and negative if an error occurs.

Comments

This escape is used to suppress the output of the Windows PostScript header control section, which is about 10K. If it is used, no GDI calls are allowed.