Inherited from
Applies to Objects
This interface is exposed from the PrintJob object and is used to perform administrative tasks on the print job. The interface contains methods used for pausing or canceling a print job, changing the priority of a print job, and so on.
Property/Method |
Description |
Gets the number of pages already printed |
|
Pauses processing of the print job |
|
Gets and sets the numeric position of the job in the queue |
|
Resumes processing of the print job that was paused |
|
Gets an integer value indicating the current status of the print job |
|
Gets the time elapsed (in seconds) since the job started printing |
Example
Dim PrintQueueOperations As
IADsPrintQueueOperations
Dim PrintJob As IADsPrintJob
Dim PrintJobOperations As IADsPrintJobOperations
'Get the IADsPrintQueueOperations interface. In the path HP DeskJet
'500C is the print queue.
Set PrintQueueOperations = GetObject ("NTDS://MSFT/MOON/HP DeskJet
500C")
'Enumerate individual, print jobs and pause all the jobs
For each PrintJob In PrintQueueOperations.PrintJobs
Set PrintJobOperations = PrintJob
PrintJobOperations.Pause
Next PrintJob
See Also