Giter Site home page Giter Site logo

Comments (5)

FrankSantoso avatar FrankSantoso commented on May 28, 2024 1

Yes, it's a shame my printer only supports a minuscule subset of ESC/POS.

At this point, i'm trying to use method channel from the epson sdk page. I'll figure it out and if i succeed, i'll get back to you, in the mean time i'll close this issue.

Thanks for the help, cheers!

from esc_pos_printer.

andrey-ushakov avatar andrey-ushakov commented on May 28, 2024

Hi,
Probably your printer doesn't implement one of the POS/ESC commands. I suspect the reverse styling command.
In the Ticket class (ticket.dart), try to remove / comment out the line 78:
bytes += styles.reverse ? cReverseOn.codeUnits : cReverseOff.codeUnits;

Does it resolve the issue?

from esc_pos_printer.

FrankSantoso avatar FrankSantoso commented on May 28, 2024

Hey thanks for the quick response,

I'm afraid the issue still persists, but instead of showing 00, it now only shows single padded zero (0).

photo6147755156465363488

Any other idea i can probably investigate?

Edit: Which brand of printer manufacturer / vendor and its type you prefer / often use?

from esc_pos_printer.

andrey-ushakov avatar andrey-ushakov commented on May 28, 2024

Hi,

I've used Xprinter as a WiFi printer and a cheap noname bluetooth printer.

It seems that your printer only supports a subset of POS/ESC commands. I would print a test ticket using the code from example.dart or just try to print using all the text styles (underlined, bold, text align etc) to find which commands/styles are not supported. You can compare your ticket with the one from README.me.

After that, you can remove/comment out unsupported commands just like you did for cReverseOn/cReverseOff command.

I hope this helps! :)

from esc_pos_printer.

andrey-ushakov avatar andrey-ushakov commented on May 28, 2024

Hi @FrankSantoso

I've recently updated the library. It may fix your issue.
May I ask you to print a few test tickets using your printers to check if it helps, please?

from esc_pos_printer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.