IADsPrintQueue Property: Priority

Property Name
Priority

Property Type
Long

Description
Gets and sets the priority of the Printer object's job queue for any connected devices. All jobs in the higher priority Print Queue objects are processed before those in the lower priority Print Queue objects.

Valid Values
Valid values are from 1 to 99, where 1 is the lowest priority and 99 is the highest priority.

Example

Dim PrintQueue As IADsPrintQueue
'Get the interface
Set PrintQueue = GetObject ("NTDS://MSFT/MOON/HP DeskJet 500C")
'Get Priority property
Debug.Print PrintQueue.Priority
'Set the Priority property
PrintQueue.Priority = 1
'Commit the changes
PrintQueue.SetInfo

 

See Also