mike42 / escpos-php

PHP library for printing to ESC/POS-compatible thermal and impact printers
Other
2.55k stars 863 forks source link

On my Website is not working but perfectly working on local xampp server #960

Open ShahidBashir881 opened 4 years ago

ShahidBashir881 commented 4 years ago

On my Website is not working but perfectly working on local xampp server

diquispe commented 3 years ago

I have the same issue, at this moment I don't found any alternative searching on over the internet

ShahidBashir881 commented 3 years ago

if you find any related solution then please tell me it still pending for me.

mutiemule commented 2 years ago

Printing on local will work well with this package.

However, to print online, you will need to develop a desktop service which has to be installed on the local computer where you need printing to be done. Operating System does not matter in this case, you can be hosting on Linux based server and printing on a windows server. This desktop service interfaces between the online service and the local service.

I resolved this by developing an electron js service based on node-escpos package which can receive commands from the online print command and then communicate those commands to the printer through USB.

You can check out the node-escpos printer driver package for some inspiration on how to go about this.