I am developing a web-based POS. Unfortunately, POS must print through a thermal receipt printer (TM-T88IV, Epson). The web application is based on Django. Is there any idea on how the system could automatically print a receipt whenever a user clicks a control in the web application?
I was thinking of creating other services in python for that purpose, but that would defeat the purpose of having a web application, where all you need is a browser, without any extra installation.
The printer is connected to the client by the way, and the printing should be "silently" triggered, which means that there is no need for human intervention. Once the transaction is finalized, the printing should starts.
Any suggestion is welcomed!
I see two ways to accomplish it:
First method – Configure your browser
Notes
Good solution if you have one printer for every client (because you can use the default printer only). Keep in mind that you can remove your print server (useful for very resource limited devices) making a script that the browser should automatically execute for open your file. You can use something like this:
Firefox
print.always_print_silentand set it toTrueprint.show_print_progressand set it toFalseKeep in mind that there are other extensions for making kiosks, for example:
Chrome
You can start it with those options:
--kiosk --kiosk-printingInternet Explorer
For kiosk mode see: http://support.microsoft.com/kb/154780
Second method – Server handles every printer
Notes
Good solution if:
How to do