MCL Printer Monitor Component

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.

Key features

The control raises an event whenever a print job is added, removed or changed on the printer queue which is being monitored.

Events

JobAdded

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

JobWritten

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

JobSet

A job details has been changed

  Private Sub PrinterMonitorComponent1_JobSet(ByVal sender As Object , _
          ByVal e As EventArgs) Handles PrinterMonitorComponent1.JobSet

  End Sub

JobDeleted

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

PrinterInformationChanged

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

Classes

PrinterMonitorComponent

The drop-in component that monitors a given printer's job queue and raises the events accordingly.

PrintJobEventArgs

Represents the event arguments for the PrinterMonitorComponent job added, written and deleted events.

PrintJob

Represents an individual job on the printer spool queue.

PrinterEventArgs

Represents the event arguments for the PrinterMonitorComponent's PrinterInformationChanged event.

PrinterInformation

Represents the status and information about printer being monitored.

Using the component in your applications

Adding the component to your application

Adding the component in Visual Studio .NET

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

Licensing and distribution

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

System Requirements