Hello,
I'm trying to print a barcode with Brother QL-820NWB using Escp but it always print a blank label. Is it possible to print it this way or should I use a template?
This is the code I'm using:
`$stream = stream_socket_client("tcp://{$printerIp}:9100", $errorNumber, $errorString);
$printer = new Printer(new Escp($stream));
$printer->addCommand(new Command\Barcode($barcode, 80, Command\Barcode::WIDTH_SMALL, 'code39', false, 2.5));
$printer->printLabel();
fclose($stream);`
Hello,
I'm trying to print a barcode with Brother QL-820NWB using Escp but it always print a blank label. Is it possible to print it this way or should I use a template?
This is the code I'm using:
`$stream = stream_socket_client("tcp://{$printerIp}:9100", $errorNumber, $errorString);
$printer = new Printer(new Escp($stream));
$printer->addCommand(new Command\Barcode($barcode, 80, Command\Barcode::WIDTH_SMALL, 'code39', false, 2.5));
$printer->printLabel();
fclose($stream);`