IADsPrintQueueOperations Interface

Inherited from

IDispatch

IUnknown

IADs

Applies to Objects

Print Queue

This interface is exposed from the Print Queue object and is used to perform administrative tasks on the queue. The interface contains methods used for getting a list of print jobs in the queue, purging the queue, pausing operations of the queue, and restarting the queue.

Property/Method

Description

Pause

Pauses the processing of print jobs in the print queue

PrintJobs

Returns a collection of references to print job objects

Purge

Purges (deletes) all jobs from the print queue

Resume

Resumes processing of paused print jobs in the print queue

Status

Returns an integer value indicating the current status of the print queue

Example

Dim PrintQueueOperations As IADsPrintQueueOperations
'Get the interface. In the path HP DeskJet 500C is the print queue.
Set PrintQueueOperations = GetObject ("NTDS://MSFT/MOON/HP DeskJet 500C")
'Print the Status property
Debug.Print PrintQueueOperations.Status

 

See Also