escpos-php icon indicating copy to clipboard operation
escpos-php copied to clipboard

not printing online

Open shafkatkhan opened this issue 4 years ago • 2 comments

printer is printing on localhost, not online

shafkatkhan avatar Dec 08 '19 16:12 shafkatkhan

There's not much to work from here.

Would you mind sharing a snippet of PHP which shows the problem, and explain how you've verified that your server is able to get data to your printer?

mike42 avatar Dec 15 '19 03:12 mike42

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, which can receive commands from the online print command and then communicate those commands to the printer through USB.

mutiemule avatar Apr 30 '22 09:04 mutiemule