>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 ...