Skip to content

I can't print barcode with QL810W #29

Description

@IvanPagan

Hi, I'm trying to print barcodes but allways have the same, a commands string, For example I got "itrhwzBCA04220007510" trying to print CA04220007510 barcode with code128.

        $stream = stream_socket_client('tcp://'.$printer_ip.':9100', $errorNumber, $errorString);

        $printer = new Printer(new Template(2, $stream));

        $printer->addCommand(new Command\Barcode($product->reference, 29, Command\Barcode::WIDTH_MEDIUM, 'CODE39', true, 2.5));

        $printer->printLabel();
        
        fclose($stream);

Whats happend? Ineed to do something more?

Thanks

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