Search code examples
printingdosfoxpro

Print To File From CMD.EXE


I have an old FoxPro program which can send reports to my network printer via the LPT1 port but I would like to print a report to a file to document something. Is there a way to capture the LPT1 port and send its documents to a file? I have tried the Paperless Printer, Adobe PDF, and the Microsoft XPS Document Writer but nothing worked.


Solution

  • Not sure which version you're using, but you could try the SET PRINTER command:

    SET PRINTER TO output.txt