Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

get print job status using C++

Status
Not open for further replies.

CodeSculptor

Programmer
Jun 21, 2006
5
US
(Using C++ in Visual Studio 2005)
From our application, we want to print a "raw" data file to the printer, and verify that the job was actually printed. Using the Win32 API (EnumJobs, GetPrinter, etc.), we are somewhat able to check on the status of the printjob; However, in certain circumstances (such as if the printer tray is open), the job is de-spooled and no longer in the print queue, and so the Win32 API gives us no status on that job. It is not until the second or third job is sent (tray still open) that things get stopped up in the print queue, and we can get a status of the jobs still in the queue, but our app has no way to determine the success or failure of the initial job.
So the questions are:
1. Is there a way to get the status of a print job (all the way to the output tray, not just that it de-spooled) using the Windows spooler?
2. Is there a way to get the same status using something other than the Windows spooler?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top