Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Send print job to a file
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00311636
Message ID:
00312535
Vues:
61
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform