IADsPrintJob Property: Description

Property Name
Description

Property Type
String

Description
Gets and sets the description of the print job. This is a simple textual description of the print job.

Example

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

 

See Also