januslo / react-native-bluetooth-escpos-printer

React-Native plugin for the bluetooth ESC/POS & TSC printers.
MIT License
351 stars 411 forks source link

I want to remove from printing unnecessary data like size,gap ,only print fresh text ? #172

Open joy-mollick opened 2 years ago

joy-mollick commented 2 years ago

I used it in my app , it prints . It is okk . But I want to print fresh text like

Category : blue , Date : 11-04-2021, Test: testing .

Only like this above ,but it prints other unnecessary datas like

size 40 mm gap 20 mm direction 000 tss24 bf2 etc........

I don't want to print these values . Plz anyone help me to print fresh text ??? Urgent help needed .

Venkat1P commented 2 years ago

node_modules/react-native-bluetooth-escpos-printer/android/src/main/java/cn/jystudio/bluetooth/tsc/RNBluetoothTscPrinterModule.java

  1. comment from line no 72 to 87
  2. Line 108 remove all args except last arg 't' (Note also remove the same in the addText method which is in another file TscCommand.java)