In addition to what Sam posted, if the value for the printer name does not match exactly the windows printer name, vfp will print to the default windows printer. Make sure they are exact in your tests by perhaps doing something like:
lcprinter = getprinter()
set printer to name (lcprinter)
*Test printing your report
Now after that test, if the report still prints to the wrong printer, make sure there is no printer information store din the report itself.
>I'm doing a POS app with three printer (cashier, kitchens), how can I direct the output to certain printer?
>
>I have tried:
>Set printer to name Epson2
>
>but all printouts go to Epson1 (default printer)
>
>thanks for the help
>
>regards,
>
>Jerry
.·*´¨)
.·`TCH
(..·*
010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"