How to use PrintServer and PrintQueue classes

Uses classes PrintServerand PrintQueueis the same as viewing jobs through a printer in Windows?

We have an application that can directly print to a Windows printer, but it cannot create an array of bytes or anything like that that we could use for the call AddJob. Would a printer list using a method PrintQueue.GetPrintJobInfoCollection()to check the status of the original print item?

+5
source share
1 answer

I think so - see the MSDN example: https://msdn.microsoft.com/en-us/library/aa970685%28v=vs.100%29.aspx - This article shows how to use PrintServer and PrintQueue to identify problematic print jobs.

Here's a code draft article that uses WMI to list print jobs: http://www.codeproject.com/KB/printing/prntjobcontrollerusingwmi.aspx

+3
source

All Articles