Bins

Description

Lists the available paper sources 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).

The names returned are suitable for use with the paperSource property.

Syntax

oJobs = printerControl.Bins

Properties

Item(nIndex) - returns the name of the paper source item at nIndex
Count - returns the number of available paper sources.

Methods

None.

Example

<script>
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);
}
<script>

Applies To

printerControl

See Also

paperSource