It could happen if Printer info has been saved with report. Open reportthe Report Designer and make sure that Printer Environment on the Report menu is unchecked.
>I have an exe printing a report as follows:
>
>use sysfile
>set printer to name (alltr(sysfile.printer2))
>report form rptinvoice.frx to printer noconsole nodialog
>
>
>and among my installed printers, I've got:
>
>printer 1: HP LASER(marked as the default)
>printer 2: PDF PRINTER(is the printer in sysfile.printer2 field)
>
>
>The problem is that the output keeps going to the defaut printer which is HP LASER.
>If I set printer 2 as the default printer then it works. It would appear that VFP is ignoring the SET PRINTER TO NAME command.
>
>Any pointer will be greatly appreciated!
>
>TIA
--sb--