|
|
The Printer Monitor Component is a .NET component which allows you to monitor and administer the print queue from VB.Net, C# or any of the .NET environments.
In addition it provides detailed information about jobs submitted to a print spooler, such as the user name, number of pages, orientation, file name and so on. Using this component it is possible to build powerful print job tracking applications in a very short timescale.
The control raises an event whenever a print job is added, removed or changed on the printer queue which is being monitored.
A job has been added to the printer queue being monitored
Private Sub PrinterMonitorComponent1_JobAdded(ByVal sender As Object, _
ByVal e As EventArgs) Handles PrinterMonitorComponent1.JobAdded
End Sub
A job has been written to the printer attached to the printer queue being monitored
Private Sub PrinterMonitorComponent1_JobWritten(ByVal sender As Object , _
ByVal e As EventArgs) Handles PrinterMonitorComponent1.JobAdded
End Sub
A job details has been changed
Private Sub PrinterMonitorComponent1_JobSet(ByVal sender As Object , _
ByVal e As EventArgs) Handles PrinterMonitorComponent1.JobSet
End Sub
A job has been removed from the printer queue being monitored
Private Sub PrinterMonitorComponent1_JobDeleted(ByVal sender As Object , _
ByVal e As EventArgs) Handles PrinterMonitorComponent1.JobAdded
End Sub
A change has occured in the printer information of the printer being monitored
Private Sub PrinterMonitorComponent1_PrinterInformationChanged(ByVal sender As Object , _
ByVal e As EventArgs) Handles PrinterMonitorComponent1.PrinterInformationChanged
End Sub
The drop-in component that monitors a given printer's job queue and raises the events accordingly.
Represents the event arguments for the PrinterMonitorComponent job added, written and deleted events.
Represents an individual job on the printer spool queue.
Represents the event arguments for the PrinterMonitorComponent's PrinterInformationChanged event.
Represents the status and information about printer being monitored.
The control can be dropped onto any standard windows form as with any interface-less component. Alternatively you can use the PrinterMonitorComponent class by declaring it thus:
Private mPr As PrinterMonitorComponent
For more in-depth examples see the Examples page
Effective from 15 August 2006 the PrintQueueWatch.NET component has been moved to an open source and free license arrangement, based on the Creative Commons Share-Alike model
You can find out more details here