PrinterMonitorComponent.RemovePrinter Method

Removes the named printer from the collection of printers being monitored by this component

[Visual Basic]
Public Sub RemovePrinter (ByVal DeviceName As String) 

Example

[Visual Basic] The following example removes "HP LaserJet 5L" from the monitored printer list

[Visual Basic] 
Public Sub RemoveHPLaserJet(byval pjIn As PrinterMonitorComponent)

pjIn.RemovePrinter("HP LaserJet 5L")

End Sub

Requirements

Namespace: PrinterQueueWatch

Platforms:  Windows NT 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows .NET Server family

See Also

PrinterMonitorComponent overview , All PrinterMonitorComponent members


© 2003 Merrion Computing Ltd. All rights reserved.