Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Send print job to a file
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00311636
Message ID:
00312535
Views:
63
>Ed:
> I added a new printer which allow me to save my print job as a file, however, it will prompt me for the file name, is there a way I can pass down a parameter to avoid that??

Just set up a normal printer that uses PCL output; no need to specify the printed output gets directed to a file in the WIndows printer configuration. Set the default printer in your VFP application to the PCL printer when you want to create PCL formatted output. Use the TO FILE clause in the REPORT statement to direct it to a specific file without being prompted for the name of a file by the Windows printer driver, eg:

* this assumes that the Windows name of the PCL output device is MyPCLPrinter
SET PRINTER TO MyPCLPrinter
REPORT FORM foo TO FILE bar ...
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform