Is using the PrintServer
and PrintQueue
classes the same as looking at the jobs via the printer in Windows?
We have an application that can print to a windows printer directly, but it cannot create a byte array or anything similar that we could use to call AddJob
. Would enumerating the printer using the PrintQueue.GetPrintJobInfoCollection()
method work for checking the status 开发者_运维问答of the original printed item?
I believe so. See the example in How to: Diagnose Problematic Print Job. The article illustrates the use of PrintServer
& PrintQueue
to identify problematic print jobs.
Here's code project article that uses WMI for enumerating print job : http://www.codeproject.com/KB/printing/prntjobcontrollerusingwmi.aspx
精彩评论