Open tienw opened 5 years ago
You printer may need to Chang to TSC model
发自我的 iPhone
在 2019年8月15日,上午12:11,Tien notifications@github.com 写道:
I can connect to the bluetooth printer, I can print something out, but I cannot print barcode, when I send printLabel using option barcode, I just get the following result (see it in the attached image). Does anyone know how to solve this issue??
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.
I have a Zebra ZQ520 printer. When you say change to TSC model. Does that mean the model that I have are unable to use this library properly and I need to get/buy another TSC printer ??
The pic you attached shows the printer prints the commands directly. It usually happens when you are sending the TSC commands to the ESC model
发自我的 iPhone
在 2019年8月15日,下午10:46,Tien notifications@github.com 写道:
I have a Zebra ZQ520 printer. When you say change to TSC model. Does that mean the model that I have are unable to use this library properly and I need to get/buy another TSC printer ??
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
I see now. Besides changing to a TSC printer, what other option we have? Send ESC commands? Is that possible from this component or from other 3rd party component?
Plz check the readme and demo, that shows the useage of ESC commands
发自我的 iPhone
在 2019年9月6日,上午2:39,Tien notifications@github.com 写道:
I see now. Besides changing to a TSC printer, what other option we have? Send ESC commands? Is that possible from this component or from other 3rd party component?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
I found out that the printer only supports CPCL or ZPL command. Do you know if this will work with it or any other library will do? Thank you in advance
@tienw did you found any solution for CPCL command for barcode printing? I've encounter the same issues, appreciated if you could share.
Have you managed to print ZPL with RN? If so, please, could you tell which lib you used?
I can connect to the bluetooth printer, I can print something out, but I cannot print barcode, when I send printLabel using option barcode, I just get the following result (see it in the attached image). Does anyone know how to solve this issue??
Here is the code I use
let options = { width: 80, height: 80, gap: 20, direction: BluetoothTscPrinter.DIRECTION.FORWARD, reference: [20, 20], tear: BluetoothTscPrinter.TEAR.ON, sound: 0, barcode: [{type: BluetoothTscPrinter.BARCODETYPE.CODE128, height: 40, readable: 1, rotation: BluetoothTscPrinter.ROTATION.ROTATION_0, code: '417322'}], }
BluetoothTscPrinter.printLabel(options) .then(()=>{ alert("printed") }, (err)=>{ alert("failed") })