0
I need to print a bill of sale through a web application, where I developed the front using Vuejs and the back built an API with Laravél, and I’m looking to integrate a Bematech MP-4200 TH printer, intended to do in a function call in my vuejs component, but I found very little material on the integration of the printer with javascript, I’m using a serial port Someone knows how to do this?
As far as I know, with the javascript on the client side, in the case of your situation that is using Vue.js, it is not possible to manipulate the hardware of the machine, it would be even security failure if it were possible. You would have to have another language more to the side of the backend to carry out this action.
– Anderson Henrique
What you can do if you have the printer installed on your computer is to have the user print, with the function https://www.w3schools.com/jsref/met_win_print.asp
– Anderson Henrique