PrintJob.PaperOut Property

Retruns true if the printer which this job is queued against job is out of paper

[Visual Basic]
Public ReadOnly Property PaperOut As Boolean
[C#]
public bool PaperOut {get;}
[C++]
public: __property bool get_PaperOut();
[JScript]
public function get PaperOut() : boolean;

Property Value

Retruns true if the printer which this job is queued against job is out of paper

Remarks

Example

[Visual Basic] The following example prints the status of a job to a trace

[Visual Basic] 
Public Sub TraceStatus(ByVal pjIn As PrintJob)

   With pjIn
        Trace.WriteLine("** In Error? " & .InError.ToString)
        Trace.WriteLine("** Off Line? " & .Offline.ToString)
        Trace.WriteLine("** Out of paper? " & .PaperOut.ToString)
        Trace.WriteLine("** User intervention required? " & .UserInterventionRequired.ToString)
   End With

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

PrintJob overview , All PrintJob members


© 2003 Merrion Computing Ltd. All rights reserved.