How to print on a Bematech MP-4200 TH thermal printer using Javascript?

Asked

Viewed 478 times

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?

  • 1

    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.

  • 1

    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

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.