This property sets the checkbox [Print to File] in the "Print" dialog.
Property Value
The PrintToFile property value sets the [Print to File] checkbox in the "Print" dialog
Value | Explanation |
---|---|
True | Checks the checkbox |
False | Does not check the checkbox |
Explanation
The PrintToFile property sets the checkbox [Print to File] in the "Print" dialog. When this checkbox is checked, documents are printed to a file instead of to a printer.
This property is used with the PrintDialog method. The PrintDialog method is used to display the "Print" dialog. If the Collate and PrintToFile properties are set prior to executing the PrintDialog method, the "Print" dialog will be initialized with those values (i.e. those checkboxes will be checked). Likewise, the Collate and PrintToFile property values can be retrieved after the PrintDialog method has been executed.
If the Options property is set to poPrintToFile or poDisablePrintToFile then the document cannot be printed to a file regardless of the setting of the PrintToFile property.
Setting this value
This value can be set at runtime.
Retrieving this value
This value can be retrieved at runtime.