AbobosSoftware / cordova-plugin-brother-label-printer

Cordova and Capacitor plugin for Bother Label Printers
MIT License
10 stars 16 forks source link

Double label printing issue when printing with bluetooth #55

Closed aruntube closed 1 year ago

aruntube commented 1 year ago

When i print with Bluetooth the label is printing twice (Duplicated).

robr2112 commented 1 year ago

Which printer model?

Does the papersize info/type match the paper you are actually using?

aruntube commented 1 year ago

I am using QL-820NWB Printer. I kept PaperLabelName : 62mm in the printer options and using same 62mm label for printing.

risip204 commented 1 year ago

Can you verify if the label in use is DK-2205? (Continuous roll). Does this occur specifically when printing over Bluetooth? Have you tried print over Wi-Fi to verify this is strictly with Bluetooth communication? When you set the scale mode (fit to page), it usually compress the data into single label. Please check if the "NumberofCopies" is not set. Lastly if you can share the code snippet, I can have a look to see if there is anything that could be causing this issue.

arcadius commented 1 year ago

@aruntube I have seen similar issues before. It is likely to be a front-end issue. Please put a logging message right on the user tap/click event and you will notice that the event is fired twice. So, that has nothing to do with the printing process.

The way this is handles is that you disable the print button once it's clicked and make sure you capture only one event. It's likely to be a UI issue.

aruntube commented 1 year ago

@arcadius Yes its a font-end issue. Thank you @robr2112 @risip204 @arcadius