Thanks Sergey. That worked like a charm!
Ken
>Ken,
>
>Clear printer related info from the report. Open your report as a table and blank out TAG and TAG2 fields in the first record. Also remove following printer related lines from EXPR field.
DRIVER=
>DEVICE=
>OUTPUT=
>
In VFP8 you can just uncheck 'Printer Environment' on Report menu and save report.
>The name expression also works better in this case.
lcprinter = GETPRINTER()
>SET PRINTER TO NAME (lcprinter)
>REPORT FORM myreport TO PRINTER
>
>
>
>>I noticed in the FAQ section that the following syntax was suggested to change the default printer:
>>
>>lcprinter = GETPRINTER()
>>SET PRINTER TO NAME "&lcprinter"
>>REPORT FORM myreport TO PRINTER
>>
>>I can't get this to work. What am I doing wrong?
>>Thanks.