help icon indicating copy to clipboard operation
help copied to clipboard

Print to a local printer via a remote server

Open mhmatos opened this issue 3 years ago • 5 comments

Hello, I'm developing an application with Node.js in the backend and React JS in the frontend to command a restaurant and I would like to know if it is possible after recording the data in the backend in a cloud server (example: Digital Ocean), is it possible that the backend send the printout of the recorded data to a local (thermal) printer on the client machine.

mhmatos avatar Dec 15 '22 18:12 mhmatos

please take a look at https://www.npmjs.com/package/react-to-print. It can give you some ideas

preveen-stack avatar Aug 25 '23 06:08 preveen-stack

@mhmatos You got the solution?. I'm also working on a similar project. I have to print locally using nodejs code hosted on heroku or any other hosting platform.

NisargDeveloper avatar Oct 24 '23 13:10 NisargDeveloper

please take a look at https://www.npmjs.com/package/react-to-print. It can give you some ideas

This is more like Control+P using the code. This will not work with nodejs

NisargDeveloper avatar Oct 24 '23 13:10 NisargDeveloper

You can’t print locally over the web unless the document is local, and you can’t ever print in a browser headlessly. What you can do is download/display the file in the browser, and then have the user print it.

ljharb avatar Oct 24 '23 14:10 ljharb

i Would Like To Get All My Printer List , which Is Connected My Network ? I n Node Js

tamil752002 avatar Mar 29 '24 04:03 tamil752002

This issue appears to be stale, so I've closed it. If you need more help, please open a new issue.

avivkeller avatar Jul 20 '24 01:07 avivkeller

please take a look at https://www.npmjs.com/package/react-to-print. It can give you some ideas

This is more like Control+P using the code. This will not work with nodejs

hi, i also working on restaurant webpage . need to print without displaying preview print page and direct print to print what ever printer connected to it in usb or wifi mode printers . if use know any solution are any one know solution plz share

rahul-5503 avatar Feb 03 '25 12:02 rahul-5503