printer
Description
Specifies the printer to print to. Only the exact printer name strings as they appear on Internet Explorer's Print dialog can be specified. If the printer specified does not exist or is written incorrectly, printing will be directed to the default printer.
Syntax
printing.printer = sPrinterName
Settings
This a write-only property. With JScript, take care to double a backslash if one appears in the printer name, as in the example below.
Please note that providing an invalid name will not raise an error - the request will be ignored and the printer to use remain unchanged. To trap errors specifying the printer to use, use the currentPrinter property.
Applies To
printing
Example
factory.printing.printer = \\\\FS-LYS-01\\HP5n-759; // print to \\FS-LYS-01\HP5n-759
Also check out the source code of the ScriptX Techie Printing example.
See Also
rawPrinting
bottomMargin, collate, copies, currentPrinter, duplex, footer, header, leftMargin, paperSize, paperSource, portrait, printBackground, printToFileName, rightMargin, templateURL, topMargin
DefaultPrinter, EnumJobs, EnumPrinters, GetJobsCount, IsSpooling, IsTemplateSupported, PrintHTML, PrintSetup, SetPageRange, WaitForSpoolingComplete