Closed Andre-Coelhoo closed 1 year ago
Hi @Andre-Coelhoo ,
Thanks for reaching out about this. In the case of this error message, you are getting it because you have not specified a label that matches the paper that is on your printer.
For an example on how to specify the label I recommend taking a look at the demo app https://github.com/CodeMinion/Demo-Another-Brother-Prime/blob/master/lib/main.dart#L432
Hope this helps but don't hesitate to reach out if there is anything else I can help with.
soo im using a paper that is 62mm and the printer is black/red I changed one line with printInfo.labelNameIndex = QL700.ordinalFromID(QL700.W62.getId()); but im receiving the same error, how can I know which to use
Thanks for the additional information @Andre-Coelhoo .
In the case of the red/black labels you'll need to use the labels ending in RB. In this case I believe you'll need this one https://github.com/CodeMinion/another_brother/blob/main/lib/label_info.dart#L436
Its working doesn't print any text and doesn't stop giving paper but I will investigate. Thanks a lot for the help, André Coelho.
Hello everyone I get this error when trying to print, the papersize has few options. Can anyone help me? Print Result: {isBatteryMounted: {name: Unknown, id: -1}, labelId: -1, maxOfBatteryResidualQuantityLevel: -1, labelType: -1, errorCode: {name: ERROR_WRONG_LABEL, id: -1}, isACConnected: {name: Unknown, id: -1}, batteryLevel: -1, batteryResidualQuantityLevel: -1}
var printer = new Printer(); var printInfo = PrinterInfo(); printInfo.printerModel = Model.QL_820NWB; printInfo.printMode = PrintMode.FIT_TO_PAGE; printInfo.isAutoCut = true; printInfo.port = Port.NET; // Set the label type. printInfo.paperSize = PaperSize.CUSTOM;