IADsPrintQueueOperations Method: Purge

Purge();

Description
This method purges all jobs from the print queue.

Remarks
The user must have administrative privileges on the queue to use this method.

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")
'Purge all jobs from the queue
PrintQueueOperations.Purge

 

See Also