printToFileName
Description
The file name to print to.
Use the full path specification.
The file created doesn't accumulate subsequent print-outs and - for security reasons - doesn't get overwritten if it already exists. Specify a new filename for each new print-out.
Printing to file name is supported for Internet Explorer 5.0 and later. For Internet Explorer 7 and later protected mode must be disabled so that the file can be written to unless a writeable protected mode location is used.
Syntax
printing.printToFileName= sPathFileName
Settings
This is a read/write property. With JScript, take care to double a backslash if one appears in the file path, as in the example below. An empty string indicates that the print-out should go to the printer driver.
Applies To
printing
Example
factory.printing.printToFileName = "d:\\temp\\printout.prn"
See Also
printer
IsSpooling,Print, PrintHTML, PrintSetup, WaitForSpoolingComplete