how to create and print an invoice ticket for thermal printer with react.js and NodeJs?

739 Views Asked by At

I created an office application for managing a supermarket with Windev for a client but now he is asking me to make sure his application is connected to the internet so that he has remote access and controls everything from anywhere it turns out that. so I thought it was good to transform this application into a web application using React.js in front-end and NodeJs in Back-end but my biggest concern is to be able to set up the billing system

I would like my output state to look like this (same dimension, same shape) here is the image of a receipt that I want to have at the end

1

There are 1 best solutions below

4
On

Printing should not be as hard as you could think. In the internet browsers the API contains a print method which you can call from within react code:

window.print();

Here is a more detailed answer already discussed on Stackoverflow:
How to print React component on click of a button?