The printed output is sent to a printer's port instead of to the requested output file when you try to print a file programmatically in Windows XP (907299)
The information in this article applies to:
- Microsoft Windows XP Home Edition
- Microsoft Windows XP Professional
SYMPTOMSWhen you try to print a file programmatically in Microsoft Windows XP, the printed output is sent to a printer's port instead of to the requested output file. This problem occurs when all the following conditions are true: - You configure the printer to spool documents.
- You use the DOCINFO.lpszOutput structure member to specify an output file for the print job.
- The file that you specify in the DOCINFO.lpszOutput structure member is locked by another process or thread.
WORKAROUNDTo work around this problem, follow these steps:
- Make sure that the file that you have specified is not locked by any other process or thread.
- Configure the printer to print directly to a port instead of to spool documents.
- Apply the hotfix that is discussed in the following Microsoft Knowledge Base (KB) article:
905519 You experience problems when you try to print to a file programmatically in Windows XP
Modification Type: | Major | Last Reviewed: | 11/23/2005 |
---|
Keywords: | kbtshoot kbprb KB907299 kbAudITPRO kbAudDeveloper |
---|
|