-2
I am creating a system in PHP and we are entering the printing phase with non tax thermal printers. In principle I did not find Epson support for PHP printing and in researches I found the component mike42/escpos-php. Using it I got network prints with Ethernet and local with USB. My client needs network LPT printing and also network USB.
The system will run on tablet’s and there will be a print server, where necessarily doesn’t have to be in PHP because it uses REST with the print data passed via JSON to it.
My need is to create a server(could be in another language, no problem) where it is possible to print other computers that have printers shared with it, but that the printers are USB and/or LPT.
Obs: In the description of the component mike42/escpos-php is that has support for shared printers, but in practice it was not possible as the message appears: Warning: copy( SERVER-NAME printer): failed to open stream: Permission denied in ... escpos-php-1.5.1 src Mike42 Escpos Printconnectors Windowsprintconnector.php on line 372.
Any suggestions, anyone ever come across similar situation?
On issues of file permissions, when giving permissions in the PRINTERS folder of both the server and the computer where the printer is installed and shared with the server the message remains, where according to the queries it should disappear. Joining this fact and that we are right at the beginning of the printout part, so it would not be a problem if the server were in another language, for example.
Thank you for your answers but so far without success.
Is the printer installed on the server? Is this permission problem not from the computer the printer is installed on? Work with a system that sends prints over the network and when the problem is permission, if OS is Windows we just give write permissions to users in the folder
C:\Windows\System32\spool\PRINTERS
.– Laércio Lopes
There is the print server and another computer where the printer is installed and shared with the server. This has been done both on the server and on the computer that the printer is installed but the "Permission denied" message continues.
– Anderson Brunel Modolon