IADsPrintJobOperations Interface

Inherited from

IDispatch

IUnknown

IADs

Applies to Objects

Print Job

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

PagesPrinted

Gets the number of pages already printed

Pause

Pauses processing of the print job

Position

Gets and sets the numeric position of the job in the queue

Resume

Resumes processing of the print job that was paused

Status

Gets an integer value indicating the current status of the print job

TimeElapsed

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