PrinterMonitorComponent.AddPrinter Method

Adds the named printer to the collection of printers being monitored by this component

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

Example

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

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

pjIn.AddPrinter("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.