Documentation for this section has not yet been entered.
The PrinterSettings.PrintToFile property is used by the System.Windows.Forms.PrintDialog when the user selects the Print to file option. In such a case, the output port is set to "FILE," causing the Windows printing subsystem to prompt the user for a file name when the PrintDocument.Print method is called.
The PrinterSettings.PrintToFile property is only used by the System.Windows.Forms.PrintDialog and cannot be set programmatically. The Print to file option only appears on the System.Windows.Forms.PrintDialog when the System.Windows.Forms.PrintDialog.AllowPrintToFile property is set to true.