escpos-php
escpos-php copied to clipboard
website hosted on linux but printer on windows
Hi @mike42 , can you help me please with this issue, I can print using a local webserver, but not from my hosted website? it shows me this error
Couldn't print to this printer: Failed to print. Command "smbclient '//DOMAIN-NAME/XP-80C' -c 'print -' -N -m SMB2" failed with exit code 1: Unknown parameter encountered: "princap name" Ignoring unknown parameter "princap name" gencache_init: Failed to create directory: /home/conex/.cache/samba - No such file or directory gencache_init: Failed to create directory: /home/conex/.cache/samba - No such file or directory gencache_init: Failed to create directory: /home/conex/.cache/samba - No such file or directorytree connect failed: NT_STATUS_BAD_NETWORK_NAME
my website is hosted on linux cent os , but the printer is installed on windows
help please
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 Thank you very well for your help I appreciate kindest regards
@mutiemule can you share this solution with us? i have this problen too. thanks
i solve this by make an c# app that recieve printing request