>Thanks for your help. Here are what I have. When I ran the SET("Printer", 3) both VFP 6.0 and VFP 9.0 display "DOCUCOM PDF DRIVER" but if I changed the REPORT FROM comment and show printer promp the VFP 6.0 hightlight the DocuCOM PDF Driver and VFP 9.0 hightlight my default printer HP Laser Jet 4000 Series PCL and report goes to printer instead the PDF file. Any ideas?
Thanks, Tai Fei Pao
Are you sure the problem is with "SET PRINTER TO NAME"? Check if printer has been changed with
>SET PRINTER TO NAME "DocuCom PDF Driver"
>? SET("Printer", 3)
Make sure that Printer Environment on the Report menu is unchecked for you report in the Report Designer. This way a printer related info will not be saved with your report.
>
>
>>Why "SET PRINTER TO NAME" comment does not set printer to "DocuCom PDF Driver" in VFP 9.0 but it works in VFP 6.0?
>>*
>> SET PRINTER TO NAME "DocuCom PDF Driver"
>> REPORT FORM sas100 TO PRINTER NOCONSOLE
>> SET PRINTER TO DEFAULT
>>*