- Go to Control Panel > Devices and Printers.
- Click 'Add a printer' at the top.
- Choose 'Add a local printer'.
- Select 'Use an existing port' and set it to "FILE: (Print to File)".
- Set the driver to Generic > Generic / Text Only. Click Next.
- Type in a name for the printer (e.g. Text File Printer). Click Next.
- Select "Do not share this printer" and click Next.
- Click Finish.
When you select that printer and "print" to it, you will be asked to enter an "Output File Name". This file name should include the entire path (e.g. C:\Temp\print.txt), including the file name and extension.
The resulting file will be an ASCII text file, and will contain the information that would be printed to any other standard printer, but in text form. This means that only text will be kept. All formatting will be stripped along with any images or other graphical elements.
0 comments:
Post a Comment