esc_pos_printer icon indicating copy to clipboard operation
esc_pos_printer copied to clipboard

print bug

Open shema-ryan opened this issue 2 years ago • 1 comments

PLATFORM : WINDOWS APPLICATION Have been able to print first few receipt using an Ethernet cable but the fifth is always printed in halves . have to followed your example but still wasn't successfully.

shema-ryan avatar Mar 04 '22 08:03 shema-ryan

Hey @shema-ryan i appear to have same issue with you, and then when i change the code to use generator. from esc_pos_utils (instead using printer. every command) and then after that call printer.rawBytes(bytes) like this example

List<int> bytes = [];
bytes += generator.text("Test", styles: const PosStyles(align: PosAlign.center), linesAfter: 2);
bytes += generator.text("Test 2", styles: const PosStyles(align: PosAlign.center), linesAfter: 2);
bytes += generator.cut();
printer.rawBytes(bytes);

there is no random stop again after using this workaround

RizaldiWiratama avatar Mar 11 '22 05:03 RizaldiWiratama