IADsPrintJob Property: HostPrintQueue

Property Name
HostPrintQueue

Property Type
String

Description
It gets the ADsPath of the print queue that is processing the print job.
This property is read-only.

Example

Dim PrintQueueOperations As IADsPrintQueueOperations
Dim PrintJobCollection As IADsCollection
Dim PrintJob As IADsPrintJob
'Get the IADsPrintQueueOperations interface. In the path HP DeskJet '500C is the print queue.
Set PrintQueueOperations = GetObject ("NTDS://MSFT/MOON/HP DeskJet 500C")
Set PrintJobCollection = PrintQueueOperations.PrintJobs
'Enumerate individual print jobs and print the HostPrintQueue property
For each PrintJob In PrintJobCollection
Debug.Print PrintJob.HostPrintQueue
Next PrintJob

 

See Also