How to check a print job status with C#

Posted by Saab on Stack Overflow See other posts from Stack Overflow or by Saab
Published on 2011-04-06T08:55:20Z Indexed on 2012/11/07 5:00 UTC
Read the original article Hit count: 552

Filed under:
|

I'm printing a PDF file by executing a commandline application from within my C# application. Now I wanna know when this job is printed. I was hoping there would be some kind of event I could subscribe to, and handle it. But I couldn't find it.

So now I'm resorting to polling. And checking the JobStatus of a PrinterSystemJobInfo object. But in my case this either gives me JobStatus = None or JobStatus = Printing.

PrinterSystemJobInfo.JobStatus

Can someone tell me how to reliably check a print job status using C#?

© Stack Overflow or respective owner

Related posts about c#

Related posts about printing