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'
精彩评论