sunmi_printer icon indicating copy to clipboard operation
sunmi_printer copied to clipboard

Line/LineWrap not working on Sunmi V2 Pro

Open BenBao93 opened this issue 1 year ago • 5 comments

With version 4 of the library the line/linewrap functions do not work anymore on my sunmi v2 pro test device running Android 7.1/Platform level 25. May be related to the software being an after market Android system for a previously locked foodpanda device, but with version 2.1.3 the printer works correctly still.

BenBao93 avatar Mar 08 '25 03:03 BenBao93

Hi,

have you found a solution to this problem?

Thanks

4dsistemi avatar Mar 14 '25 09:03 4dsistemi

Hi,

have you found a solution to this problem?

Thanks

How are you? Im working on because it works in other devices

brasizza avatar Mar 14 '25 09:03 brasizza

Image

this is about line printing, but wrap (feed) is working well!

brasizza avatar Mar 19 '25 19:03 brasizza

Hi. Thank you for this awesome package.

With package version 4.1.0, I also have the same issue with Sunmi P2 Pro. The .line() function is not working might be because of the device compatibility like you have mentioned above. But the .lineWrap() function also not working too.

My work around for now is to use .printText(text: ' ') with few space as text.

Hope you can help check with this one. Many thanks 🙏

channdara avatar May 07 '25 08:05 channdara

Hi, You can use this to print a line (I have tested it in this device): SunmiPrinter.line(type: "SOLID"); And lineWrap works this way: await SunmiPrinter.lineWrap(10); I tested it without parameters and it doesn't work, but I u pass a number it works (it should be the number of lines, but it's not). Hope this helps. The examples in pub.dev and this repository are not aligned with the code version :( I think that the example here is from 3.0.1. It should be great that @brasizza update the documentation. It is useful.

abellido avatar Jul 17 '25 11:07 abellido