Forms
Description
Lists the available paper sizes (forms) 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 paperSize property.
Syntax
oJobs = printerControl.Forms
Properties
Item(nIndex) - returns the name of the paper at nIndex
Count - returns the number of available paper sizes.
Methods
None.
Example
<script>
function listForms() {
var j = factory.printing.printerControl(factory.printing.DefaultPrinter()).Forms;
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 paper sizes:\n\n" + s);
}
<script>
Applies To
printerControl
See Also
paperSize