开发者

How to use PrintServer and PrintQueue classes

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜