|
|
Returns true if the currently logged on user has sufficient access rights to change the print job
[Visual Basic] Public ReadOnly Property IsEditable As Boolean [C#] public bool IsEditable {get;} [C++] public: __property bool get_IsEditable(); [JScript] public function get IsEditable() : boolean;
Returns true if the currently logged on user has sufficient access rights to change the print job - for instance if they are an administrator, or are the originator of the job
[Visual Basic] The following pauses any jobs that are landscape if they can be paused by the currently logged in user, when the job is added.
[Visual Basic]
Private mPr As PrinterMonitorComponent
Public Sub StartWatching(ByVal PrinterDeviceName As String)
mPr = New PrinterMonitorComponent()
AddHandler mPr.JobAdded, AddressOf Addedtest
mPr.ThreadTimeout = -1
mPr.DeviceName = PrinterDeviceName
End Sub
Public Sub Addedtest(ByVal sender As Object, ByVal e As EventArgs)
With CType(e, PrintJobEventArgs).PrintJob
If .IsEditable And .Landscape Then
.Paused = True
End If
End With
End Sub
Namespace: PrinterQueueWatch
Platforms: Windows NT 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows .NET Server family
PrintJob overview , All PrintJob members