Well, the short answer is, Xojo sucks for printing…
to deal with printing in xojo, I use one of 2 options:
- Use API calls to send print jobs directly to the printer.
- Create and open a PDF and let the user do the printing.
For your case, I use the first option, there are examples in the forum for raw printing: Receipt Printer Raw Data