PrintJob.Commit Method

Commits changes to this print job to the spooler

[Visual Basic]
Public Sub Commit 
public void Commit();
public: void Commit();
public function Commit();


Throws an InsufficentPrintJobAccessRightsException if the logged in user does not have sufficient privilege to commit changes to this print job


[Visual Basic] The following example commits a job having set it's priority to 12

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

   With pjIn
       .Priority = 12
     Catch ej As PrinterQueueWatch.PrinterMonitoringExceptions.InsufficentPrintJobAccessRightsException
       Debug.Write("You cannot Commit this print job")
     End Try
   End With

End Sub


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.