|
|
Gets the collection of jobs queued to be printed on this printer
[Visual Basic] Public ReadOnly Property PrintJobs As PrintJobCollection
[Visual Basic] Public ReadOnly Property PrintJobs(ByVal DeviceName As String) As PrintJobCollection
Returns a type safe collection class of PrintJobs queued to be printed on the printer being monitored, or on the specified printer by device name.
[Visual Basic, C#]
[Visual Basic]
Public Sub ListJobs()
Dim mPr As PrinterQueueWatch.PrinterMonitorComponent()
mPr = New PrinterQueueWatch.PrinterMonitorComponent()
mPr.ThreadTimeout = -1
mPr.DeviceName = "HP LaserJet 5L"
Dim pjIter As PrintJob
For Each pjIter In mPr.PrintJobs
Debug.WriteLine("Job queued for " & pjIter.Username)
Next
End Sub
[JScript C++ C#] No example is available for JSCript, C# or C++. To view a Visual Basic 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
PrinterMonitorComponent overview , All PrinterMonitorComponent members
© 2003 Merrion Computing Ltd. All rights reserved.