I am developing a web system where I need to print a label and a non-tax receipt after submitting a certain form. To perform this action, I have two printers:
- Non-Fiscal Matrix Printer MP-20 MI - For non-tax coupon;
- Zebra Thermal Printer TLP 2844 Non-Fiscal - For Label;
I was even able to print using the PHP php_printer DLL with php, but it was not working the way I needed: print hangs, sometimes sends and prints nothing. It's very unstable!
I tried to make use of the scpos-php library and the dot matrix printer worked correctly, however on the Zebra printer it does not print the text that I send.
I see that it is possible to make a configuration in the browser (Firefox only) so that the user can print without opening the dialog, but for this the user needs to perform a configuration in the browser and it is possible to use only one printer and not two , as needed.
For compatibility issues I can not have a java applet on the machine.
I can not use VBScript or ActiveX because I can not force the user to use only a specific browser.
Is there any other way to make this impression with PHP, Node.js or javascript?