GithubHelp home page GithubHelp logo

Comments (9)

thiendangit avatar thiendangit commented on April 29, 2024

@levantanphat9c you can remove the mark : Tiếng việt =>Tieng viet!

from react-native-thermal-receipt-printer-image-qr.

thuytony avatar thuytony commented on April 29, 2024

I need to print invoices in Vietnamese. I looked for some solutions but in the end, I found that the printer does not support Vietnamese. Do you have any solution for this? How can I print in Vietnamese?

from react-native-thermal-receipt-printer-image-qr.

levantanphat9c avatar levantanphat9c commented on April 29, 2024

You can sendRawData turn off Chinese Character and set codepage VN.

But i have a problem with this. This is Lý Chính Thắng change to Lã Ch anh Th ương

from react-native-thermal-receipt-printer-image-qr.

thuytony avatar thuytony commented on April 29, 2024

How can I do this? Can you give me more detail to do this?

from react-native-thermal-receipt-printer-image-qr.

levantanphat9c avatar levantanphat9c commented on April 29, 2024
    const VIE_LANGUAGE = '\x1b\x74\x27'; //x27 => codePage VN in model printer, you can replace it
    const CHINESE_OFF = '\x1c\x2e';
    const SET_INTERNATIONAL_CHARACTER = '\x1b\x52\x12';

    NetPrinter.printText(
      `${CHINESE_OFF}${VIE_LANGUAGE}${SET_INTERNATIONAL_CHARACTER}${BOLD_ON}(Đơn tạm tính)${BOLD_OFF}`,
    );
    
    
    You can try.

from react-native-thermal-receipt-printer-image-qr.

thuytony avatar thuytony commented on April 29, 2024

Thank you for supporting me.
Where did you get the codePage? My printer is a KPOS zy307. It seems that codePage is not working with my printer.

from react-native-thermal-receipt-printer-image-qr.

levantanphat9c avatar levantanphat9c commented on April 29, 2024

you can print selft test on your printer

from react-native-thermal-receipt-printer-image-qr.

dvquoc avatar dvquoc commented on April 29, 2024

you can print selft test on your printer

my codePage in the model is P27 (Vietnam). when converted to... how does it look like?

from react-native-thermal-receipt-printer-image-qr.

thuytony avatar thuytony commented on April 29, 2024

Hello guys. After some time searching, I found that my printer can't print the Vietnamese language. So I'm using image printing instead of text printing :D

from react-native-thermal-receipt-printer-image-qr.

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.