Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This article explains how to work around V4 print drivers attempting to send PCL/Postscript data in RAW mode to a printer and producing a 0-byte spool file.
Original product version: Windows 8
Original KB number: 2779300
Symptoms
V4 print drivers attempting to send PCL/Postscript data in RAW mode to a printer produces a 0-byte spool file.
Cause
V4 drivers are XPS-based drivers. RAW databases aren't compatible. Similar issues occur when using a v3 XPS printer driver (XPSDrv) with Windows Vista or Windows 7.
Resolution
Use XPS_PASS instead of RAW to pass information directly to the print filter pipeline in v4 and v3 XPSDrv drivers. Here's how to proceed with Windows 8:
- Call
GetPrinterDriverto retrieve theDRIVER_INFO_8structure. - Check
DRIVER_INFO_8::dwPrinterDriverAttributesfor thePRINTER_DRIVER_XPSflag. - Choose your datatype based on the presence or absence of the flag:
- If the flag is set, use
XPS_PASS. - If the flag isn't set, use
RAW.
- If the flag is set, use
More information
The XPS_PASS datatype was introduced in Windows Vista to pass XPS directly to the print filter pipeline for a v3 XPSDrv driver. That prevents overloading the RAW datatype for v3 drivers. XPS_PASS has replaced RAW for v4 drivers.