Jobs
Description
Represents the list of jobs currently in the queue for a printer. The object is a collection (it can be passed to the JScript Enumerator method or used in a VBScript for .. each loop).
Syntax
oJobs = printerControl.Jobs
Properties
Item(nIndex) - returns a printJob object for the item at nIndex
Count - returns the number of items in the queue.
Methods
None.
Example
<script defer>
function listJobs() {
var j = factory.printing.printerControl(factory.printing.DefaultPrinter()).Jobs;
var e = new Enumerator(j);
alert("There are " + j.Count + " jobs in the queue");
while ( !e.atEnd() ) {
alert("Job name: " + e.item().document);
e.moveNext();
}
}
<script>
Applies To
printerControl
See Also
EnumJobs, GetJobsCount