Property Name
TimeElapsed
Property Type
Interval
Description
Gets the time elapsed (in seconds) since the job started
printing.
This property is read-only.
Example
Dim PrintQueueOperations As
IADsPrintQueueOperations
Dim PrintJob As IADsPrintJob
Dim PrintJobOperations As IADsPrintJobOperations
'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 get the TimeElapsed
property
For each PrintJob In PrintQueueOperations.PrintJobs
Set PrintJobOperations = PrintJob
Debug.Print PrintJobOperations.TimeElapsed
Next PrintJob
See Also
Print Job Status Codes
Printer Status Codes