How to Print to File without user intervention

Summary

When choosing the option to Print to File from an application, the user is prompted with a dialog to choose the location and name of the file to be saved. If it is desired to automate the print to file process in such a way as to save the file without user interaction, follow the steps listed below.

More Information

Here are the steps to achieve this :
Go to Devices and Printers
Click on "Add Printers"
Click on "Add a local or network printer as an administrator"
Click on "Add a local printer"
Click on Create a new port: Local Port
You will get a Port Name Box - Type in Path and the file name
e.g. "C:\Temp\PrintJob.txt"
Select the Manufacturer - Generic
Select Printers - Generic / Text Only
elect - Use the driver that is currently installed (recommended)
Type a name for the printer. 
Share the Printer if needed
Finish


After doing this, any print jobs sent to this printer will automatically be saved to the location specified as the port.

Rekvizīti

Raksta ID: 2528405. Pēdējo reizi pārskatīts: 2011. gada 4. apr.. Pārskatījums: 1

Windows Server 2008 R2 Enterprise, Windows Server 2008 R2 Standard

Atsauksmes