The issue with thermal printers is that mostly of these have own ESC language, like EPL, ZPL or something like that. I make a similar app many years ago. The solution would be made a "printer" that capture the output of the invoicing program to "traslate" this into thermal printer sdk. I need more information about printer: Brand, model, sdk, etc. Please, contact me and we will talk about this.