Forms
Description
Lists the available paper sizes (forms) 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 paperSize property.
Syntax
oForms = printerControl.Forms
Licensed properties
Item(nIndex) - returns the name of the paper size at nIndex Count - returns the number of available paper sizes
Example
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);
}