The JobEvent Event is available as an add-on to the LEADTOOLS Document and Medical Imaging toolkits.
Provides the listening application with print job information for each print job received by the Virtual Printer.| Visual Basic (Declaration) | |
|---|---|
Public Event JobEvent As EventHandler(Of JobEventArgs) | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As Printer Dim handler As EventHandler(Of JobEventArgs) AddHandler instance.JobEvent, handler | |
| C# | |
|---|---|
public event EventHandler<JobEventArgs> JobEvent | |
| C++/CLI | |
|---|---|
public: event EventHandler<JobEventArgs^>^ JobEvent | |
The event handler receives an argument of type JobEventArgs containing data related to this event. The following JobEventArgs properties provide information specific to this event.
| Property | Description |
|---|---|
| JobEventState | (Read only) Gets the current job state. |
| JobID | (Read only) Gets the current job id. |
| PrinterName | (Read only) Gets the name of the printer that generated the event. |
Refer to Printer.Specifications example.
The event handler receives an argument indicating if the specified job was started or ended as well as other print job information.
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7
Copy Code