I am developing an app which uses thermal printer
I am using windows 10 and printer is Xprinter Xp-58IIH
The printer is connected to my system using usb
The print does not respond to printing and no error is showing on the log
web.php
use Mike42\Escpos\PrintConnectors\FilePrintConnector;
use Mike42\Escpos\Printer;
use Mike42\Escpos\PrintConnectors\WindowsPrintConnector;
use Mike42\Escpos\PrintConnectors\NetworkPrintConnector;
try {
$connector = new WindowsPrintConnector("Xp-58IIH");
$printer = new Escpos($connector);
$printer->text("Hello World!\n");
$printer->cut();
} catch(Exception $e) {
echo "Couldn't print to this printer: " . $e -> getMessage() . "\n";
}
How do I solve this issue?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire