I'm looking for a new solution for printing on POS printers, to help someone in modernizing their software. It currently works by communicating directly with the printer via the port it's connected to. Ignoring many different problems that arise from that, there is a main one - more and more printers are becoming USB only, and many modern computers lack the "legacy ports". It is somewhat solved using virtual port drivers and mounting local shares (it's Windows software), which brings another set of problems (say "not working").
So, I'd like to prepare the receipts on a graphics canvas (using TPrinter) and print through the printer driver like any other windows app. The only problem I need to solve is how to control the printer - when printing directly, you simply dump the cut or drawer-open escape sequences and the printer executes them. So, my question is, how can I control the printer hardware the similar way if the printout itself is done through a TPrinter object and the printer driver? I'm pretty much clueless on this one...