|
|
Gets the printer information for this printer event
[Visual Basic] Public ReadOnly Property PrinterInformation As PrinterInformation [C#] public PrinterInformation PrinterInformation {get;} [C++] public: __property PrinterInformation get_PrinterInformation(); [JScript] public function get PrinterInformation() : PrinterInformation;
Returns the PrinterInformation class that gives the setup and status information for the printer that this printer event argument pertains to.
[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"
With mPr.PrinterInformation
Trace.WriteLine("******* Printer Change Event ************")
Trace.WriteLine(" Pages per month: " & .AveragePagesPerMonth.ToString)
Trace.WriteLine(" Comment: " & .Comment)
Trace.WriteLine(" Default Data Type: " & .DefaultDataType)
Trace.WriteLine(" Driver name " & .DriverName)
Trace.WriteLine(" Total jobs: " & .JobCount.ToString)
Trace.WriteLine(" Location: " & .Location)
Trace.WriteLine(" Parameters: " & .Parameters)
Trace.WriteLine(" Port Name: " & .PortName)
Trace.WriteLine(" Printer name: " & .PrinterName)
Trace.WriteLine(" Processor: " & .PrintProcessor)
Trace.WriteLine(" Seperator File:" & .SeperatorFilename)
Trace.WriteLine(" Server name: " & .ServerName)
Trace.WriteLine(" Share name: " & .ShareName)
End With
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
© 2003 Merrion Computing Ltd. All rights reserved.