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

Via SMB protocol it does not print on client PCs

Open Dinho955 opened this issue 2 years ago • 2 comments
trafficstars

via console XAMPP it works: echo "Hello world" > foo.txt net use "\ARMANDO-PC\pos1" /user:Armando 12345 copy testfile "\ARMANDO-PC\pos1" del testfile

via php code doesn't work:

$connector = new WindowsPrintConnector("smb://Armando:12345@ARMANDO-PC/pos1");

/* Print a "Hello world" receipt" */ $printer = new Printer($connector); $printer -> text("Hello World!\n"); $printer -> cut();

/* Close printer */ $printer -> close();

o.s web server: w10 o.s pc client with printer: w7

Dinho955 avatar Oct 02 '23 19:10 Dinho955

Has anyone solved this type of problem? it's urgent

Dinho955 avatar Oct 03 '23 20:10 Dinho955