IPrintQueueInfo Interface

Inherited from

IDispatch

IUnknown

IADs

Applies to Objects

Print Queue

This interface is exposed from the Print Queue object. It includes additional properties that are not provided in the IADsPrintQueue interface. These properties can be used to get or set the shared name of a printer and checking if the printer is shared or not.

Property

Description

HoldMismatchedDocuments

Gets and sets a boolean value that indicates whether a mismatched document is kept in the queue. A mismatched document is one whose document setup does not match the printer setup.

IsPrinterShared

Gets and sets a boolean value that indicates whether the printer is shared or not.

KeepDocumentsAfterPrinting

Gets and sets a boolean value that indicates whether the documents are kept after they have been printed.

PrinterName

Gets and sets the name of the printer.

PrintSpooledDocumentsFirst

Gets and sets a boolean value that indicates whether spooled documents are printed first. This is relevant if there is a document with higher priority still spooling.

SharedName

Gets and sets the name of the printer by which it is shared.

SpoolCompleteJobBeforeStartingToPrint

Gets and sets a boolean value that indicates whether printing starts immediately or only after the last page is spooled. This property is applicable only if the printer spools documents when printing.

SpoolDocuments

Gets and sets a boolean value that indicates whether the printer spools the documents or prints them directly.

Example

Dim PrintQueueInfo As IPrintQueueInfo
'Get the IPrintQueueInfo interface. In the path HP DeskJet '500C is the print queue.
Set PrintQueueInfo = GetObject ("NTDS://MSFT/MOON/HP DeskJet 500C")

 

See Also