Coder Social home page Coder Social logo

Comments (9)

michalsuryntequiqo avatar michalsuryntequiqo commented on May 19, 2024

Yeah, the same for me.
I’m using the newest version of the plugin, 2.1.2
C974CD0B-F8A9-4AFD-8D4A-455911D9933C

from esc_pos_printer.

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

Humm interesting...

Could you please try to print something very simple:

final Ticket ticket = Ticket(PaperSize.mm80);
ticket.text('Hello world!');
ticket.feed(2);
ticket.cut();

Does it happen every time?

from esc_pos_printer.

renenucci avatar renenucci commented on May 19, 2024

Humm interesting...

Could you please try to print something very simple:

final Ticket ticket = Ticket(PaperSize.mm80);
ticket.text('Hello world!');
ticket.feed(2);
ticket.cut();

Does it happen every time?

Yeah, happens every time in all text, the shutdown moment still random.

I'll try with ticket.feed(2) line and tell if something change...

from esc_pos_printer.

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

Hi @renenucci,
Hi @michalsuryntequiqo,

What are your printer models, please?
Have you tested with a previous version of the library (before the Ticket class was created)?

from esc_pos_printer.

michalsuryntequiqo avatar michalsuryntequiqo commented on May 19, 2024

Before, the app was still using plugin version 1.0.0 and the printed text was fine (no background, just black text). After upgrading and refactoring code to use Ticket class, printer prints black backgrounds.

from esc_pos_printer.

renenucci avatar renenucci commented on May 19, 2024

Hi @renenucci,
Hi @michalsuryntequiqo,

What are your printer models, please?
Have you tested with a previous version of the library (before the Ticket class was created)?

Knup kp 1022 printer 80mm
WhatsApp Image 2020-02-10 at 22 13 40

Look at the test with your code (Hello World)
I'm using bluetooth mode, dont have wifi thermal to test..
WhatsApp Image 2020-02-10 at 22 13 49

Version of pub package
esc_pos_printer: ^2.1.2

from esc_pos_printer.

renenucci avatar renenucci commented on May 19, 2024

I commented the line in ticket.dart:

78: bytes += styles.reverse ? cReverseOn.codeUnits : cReverseOff.codeUnits;

And got this result:
WhatsApp Image 2020-02-10 at 23 11 44

Is almost fine, except by special sections (1 and 2), and underscore in all except regular.

For this printer, should we set some codetable ou something else?...
(https://novaknup.com.br/produtos/impressora-termica-smart-bluetooth-kp-1022/)

from esc_pos_printer.

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

Hi @renenucci, @michalsuryntequiqo

I've recently updated the library. It may fix the underline / reverse issues.

May I ask you to print a few test tickets using your printers to check if it helps, please?

from esc_pos_printer.

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

BTW, the Bluetooth printing moved to this package.

Feel free to create a new ticket in that repo if the issue persists.

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.