PrintFile Method
- Last UpdatedNov 06, 2025
- 1 minute read
The PrintFile() method prints the specified file using the Windows PrintTo verb.
| Overload | Description |
|---|---|
| PrintFile(String,String) | The PrintFile() method opens the Print dialog to determine the target printer and then prints the specified file using the Windows PrintTo verb. This overload of the method includes the path and docType parameters. The method uses the docType parameter to retrieve the print arguments for the file type from the File_Type table and pass them to Windows using the PrintTo verb. |
| PrintFile(String) | The PrintFile() method opens the Print dialog to determine the target printer and then prints the specified file using the Windows PrintTo verb. This overload of the method includes only the path parameter. Print arguments are not passed with the Windows PrintTo verb to print the file. |