Assuming you're not using OPOS, the following works for me.
set printer off
set printer to
set printer to name (cPrinterName)
set printer on
set device to printer
>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
The American Republic will endure, until politicians realize they can bribe the people with their own money.
- Alexis de Tocqueville
No man’s life, liberty, or property is safe while the legislature is in session.
– Mark Twain (1866)