Skip to content

How to print barcodes #41

Description

@chack1172

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);`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions