>>>Also I think that SET PRINTER ... command has no effect on @ ... SAY. From Foxpro help:
>>>"Output formatted with @ ... SAY isn't routed to the printer when SET PRINTER is set to ON. Use SET DEVICE TO >PRINTER to direct output from @ ... SAY to the printer."
>>
>>Thanks Sergey.
>>
>>If I don't use "set printer to..." how would I specify the printer for @...say... statement? I have two printers that I must use to print out two different tags.
>>
>>Thanks again Sergey.
>
>I guess SET PRINTER TO ... does have effect on @... SAY after all :)
There are two things to distinguish here. SET DEVICE determines where does the output of @Say go - to screen or printer. SET PRINTER determines where are you printing to (set printer to [something]), and are you using the printer at all (set printer on-off). So you'd need a combination of both.
The common thing with the "it prints it out when I exit Fox" means you left the printing device open. To close it, you need to "set printer to", which would close it and reset to default.
So (as far as I remember from 7+ years ago)
set printer to whatever
set printer on
set device to print
@say ... bla bla
set device to screen
set printer off
set printer to
and then it should print it out and be ready for the next print job.