开发者

find number of items waiting to be printed in printer

I need to find the number of documents waiting to be printed in a printer. I have 4 printers and I need to find for particular printer based on the name. If I use

SELECT * FROM Win开发者_如何学Go32_PrintJob

I am getting number of items in print queue of all printers. I need to do this in C#. Is it possible. Thanks.


Try this:

SELECT * FROM Win32_PrintJob WHERE Name = 'name of printer'

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜