printerControl : factory.printing.printerControl

Description

Represents the ability to determine a range of printer properties and control the print queue for the printer. Only the exact printer name strings as they appear on Internet Explorer'sPrintdialog can be specified. If the string does not exist or is written incorrectly then an error will be thrown (e.g. "The printer name is invalid").

Syntax

oControl = factory.printing.printerControl(sPrinterName)

Properties

attributes, Bins, Forms, isLocal, isNetwork, isShared, Jobs, location, name, port, serverName, shareName, status

Methods

Pause, Purge, Restart, Resume

Example

<script defer>
function networkServer() {
    var oControl = factory.printing.printerControl(factory.printing.currentPrinter);
    if ( oControl.isNetwork )
        alert("The current printer is on the network server: " + oControl.serverName);
}
<script>

Applies To

printing