PrintJobEventArgs.PrintJob Property

Gets the printer information for this printer event

[Visual Basic]
Public ReadOnly Property PrintJob As PrintJob
[C#]
public PrintJob PrintJob {get;}
[C++]
public: __property PrintJob get_PrintJob();
[JScript]
public function get PrintJob() : PrintJob;

Property Value

Returns the PrintJob class that gives the setup and status information for the jobthat this print job event argument pertains to.

Remarks

Example

[Visual Basic, C#]

[Visual Basic] 
    Public Sub Addedtest(ByVal sender As Object, ByVal e As EventArgs) Handles PrinterMonitorComponent1.JobAdded
        With CType(e, PrintJobEventArgs)
          Debug.WriteLine(.PrintJob.Username & " added a job at " & .EventTime.ToString)
        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 Language Filter in the upper-left corner of the page.

Requirements

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

See Also

PrintJobEventArgs class


© 2003 Merrion Computing Ltd. All rights reserved.