Giter Site home page Giter Site logo

Comments (5)

TerryTsai avatar TerryTsai commented on September 15, 2024

Hi garf,
That does seem strange. Would you mind showing the code you used to generate those tickets? Thank!

from escpos.

garf avatar garf commented on September 15, 2024

This is the simplifies example of generating data to send to printer:
https://gist.github.com/garf/57b6d463fab19fd8e676657483af987e
If you would like to investigate, here comes the hole app:
https://bitbucket.org/dgaripov/epos-print-server/src/7081a59629ef6e26b348a0bcc42088beb0dfc074/src/main/java/com/garf/epos/converter/DataToEscPos.java?at=master&fileviewer=file-view-default

from escpos.

TerryTsai avatar TerryTsai commented on September 15, 2024

It may have been an issue I recently introduced, but I don't currently have a printer with me to test. I have switched the cut command to its simpler form without the line feed argument. I don't think this version has any problems, but please let me know if you have any more issues.

Edit - I noticed you were using version 1.1 in your project. I am currently using that version in a production environment with no major issues (except for that additional 'f' character). Does performing a FULL cut work?

from escpos.

garf avatar garf commented on September 15, 2024

Thank you for the answer. I will try it today and will let you know if it's fine. Thank you again!

from escpos.

garf avatar garf commented on September 15, 2024

Hello. Sorry for the late answer.
I found the problem.
reset() and close() methods were causing this problem. I just removed tham from my commands sequence and all started to work like charm!
Thank you!

from escpos.

Related Issues (6)

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.