Bins
Description
Lists the available paper sources 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).
The names returned are suitable for use with the paperSource property.
Syntax
oBins = printerControl.Bins
Licensed properties
Item(nIndex) - returns the name of the paper source item at nIndex Count - returns the number of available paper sources
Example
function listBins() {
var j = factory.printing.printerControl(factory.printing.DefaultPrinter()).Bins;
var e = new Enumerator(j);
var s = "";
while ( !e.atEnd() ) {
if ( s.length > 0 ) s+="\n";
s += e.item(0);
e.moveNext();
}
alert("There are " + j.Count + " available sources:\n\n" + s);
}