BUG: SpoolFile() Fails in Windows 95Last reviewed: January 15, 1998Article ID: Q139011 |
The information in this article applies to:
- Microsoft Windows Software Development Kit (SDK) for Windows 95
SYMPTOMSSpoolFile() fails in Windows 95, or it fails to remove the spooled file.
RESOLUTIONSpoolFile() will spool the file if the first two parameters are reversed. SpoolFile() is documented as:
HANDLE SpoolFile(lpszPrinter, lpszPort, lpszJob, lpszFile);But, to make it work, call it this way:
HANDLE SpoolFile(lpszPort, lpszPrinter, lpszJob, lpszFile);There is no way to get SpoolFile() to remove the spooled file. The file must be removed by the calling application once the file has been printed.
MORE INFORMATIONFor information on an alternative to SpoolFile(), please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q111010 TITLE : HOWTO: Use PASSTHROUGH As An Alternative to SpoolFile()For more information on sending printer-specific data to a printer in Win32, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q138594 TITLE : HOWTO: Send Raw Data to a Printer by Using the Win32 API STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
|
Additional query words: 4.00 SpoolFile Raw RAW.DRV PASSTHROUGH
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |