>>>Hi,
>>>I had a program in VFP5 that used SET PRINTER TO PRINTNAME getprinter()
>>>to set the printer. In VFP9 that blows up
>>>I did:
>>>PRINTNAME=getprinter()
>>>SET PRINTER TO $PRINTNAME
>>>
>>>but the report does not go to the selected printer. It always defaults to the
>>>printer on the network the report was made and tested on.
>>>
>>>Any help would be great.
>>>
>>>Andy
>>
>>Firstly, try
>>SET PRINTER TO NAME (PRINTNAME)
>
>I did this:
>
>PrintName= getprinter()
>
>SET PRINTER TO NAME (PrintNAME)
>
>?PrintName
>WAIT
>
>Showed the correct printer name but it did not do the that printer
>REport is being called by:
>REPORT FORM proofti3 NOCONSOLE TO PRINTER
It might happen that FRX file contains printer-specific data. Open the file manually and check EXPR,TAG,TAG2 fields for the 1st record. The last 2 fields (tag,tag2) should be empty, and Expr field should not contain printer name.
Edward Pikman
Independent Consultant