|
|
Gets or sets a value indicating whether the PrinterMonitorComponent control monitors the job deleted event.
[Visual Basic] Public Property MonitorJobDeletedEvent As Boolean [C#] public bool MonitorJobDeletedEvent {get; set;} [C++] public: __property bool get_MonitorJobDeletedEvent(); public: __property void set_MonitorJobDeletedEvent(bool); [JScript] public function get MonitorJobDeletedEvent() : boolean; public function set MonitorJobDeletedEvent(boolean);
If set to false the printer monitor component will not raise any event when a PrintJob is removed from the queue of the printer being monitored
This should be set before the DeviceName is set so that the monitor does not ask to be notified whenever a job is deleted.
[Visual Basic, C#] The following example creates a PrinterMonitorComponent control to monitor a printer named "Brother HL5070N". This example uses the MonitorJobDeletedEvent property to exclude the job deleted event from those events to monitor, so as to reduce the load on the system.
[Visual Basic] Private Sub CreateMyMultilinePrinterMonitorComponent() ' Create an instance of a PrinterMonitorComponent control. Dim PrinterMonitorComponent1 As New PrinterMonitorComponent() ' Ignore JobDeleted Events PrinterMonitorComponent1.MonitorJobDeletedEvent = False ' Start monitoring the HP Laserjet 4 printer PrinterMonitorComponent1.MonitorJobDeletedEvent = "Brother HL5070N" End Sub [C#] private void CreateMyMultilinePrinterMonitorComponent() { // Create an instance of a PrinterMonitorComponent control. PrinterMonitorComponent PrinterMonitorComponent1 = new PrinterMonitorComponent(); //Ignore JobDeleted Events PrinterMonitorComponent1.MonitorJobWrittenEvent = false; // Start monitoring the HP Laserjet 4 printer PrinterMonitorComponent1.MonitorJobDeletedEvent = "Brother HL5070N"; }
[JScript C++] No example is available for JSCript or C++. To view a Visual Basic or C#, example, click the Language Filter button
in the upper-left corner of the page.
Platforms: Windows NT 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows .NET Server family
© 2003 Merrion Computing Ltd. All rights reserved.