Skip to content
This repository was archived by the owner on Dec 21, 2021. It is now read-only.
This repository was archived by the owner on Dec 21, 2021. It is now read-only.

How to use TSPL print #3

@vukhacbiet

Description

@vukhacbiet

Please provide a guide to print with this package.

I tried to print with a label printer (TSPL) XPrinter 350BM

Here is my code:

Future printStickers(String host, Uint8List bytes) async {
  TcpPrinterConnector connector = TcpPrinterConnector('192.168.1.23');
  TsplPrinter printer = TsplPrinter(
    connector,
    dpi: "200",
    sizeHeight: "25",
    sizeWidth: "40",
  );
  await printer.image(bytes);
  printer.beep();
}

Nothing happen, when remove printer.image, beep() work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions