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 javascript Enumerator method or used in a VBScript for … each loop).
Syntax
oJobs = printerControl.Jobs
Licensed properties
Item(nIndex) - returns a Job object for the item at nIndex Count - returns the number of items in the queue
Example
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();
}
}