Closed HCKUO1117 closed 8 months ago
Hi @HCKUO1117 ,
Thanks for reaching out about this. When it comes to the QL-800 the label settings are a bit counter intuitive. In that case you need to specify the label from the QL-700 (https://github.com/CodeMinion/another_brother/blob/main/lib/label_info.dart#L427) .
So in your case the setting would look something like:
printInfo.labelNameIndex = QL700.ordinalFromID(QL700.W62H29.getId());
Hopes this helps but don't hesitate to reach out if you still run into any trouble,
Thank you for your response. Unfortunately, the solution did not work for me. The value of QL700.ordinalFromID(QL700.W62H29.getId()) is 8, which is consistent with my previous settings.
We have ordered a new labels(DK-11209), size 62mm x 29mm, which is currently being delivered. We plan to conduct tests with this labels upon its arrival and I will share the results afterwards.
Hi @HCKUO1117 ,
Sorry to hear it did not work for you. One thing to note is that QL700.W62H29.getId() is 9 rather than the 8 you have mentioned above. But if it's not working the label you are using might not be a 62mmx29mm.
Looking forward to your results once you receive the DK-11209.
Hi @CodeMinion ,
I'm pleased to inform you that after switching to the 62mmx29mm label and configuring the "printInfo.labelNameIndex" with "QL700.ordinalFromID(QL700.W62H29.getId())", everything works perfectly. My apologies for any confusion earlier; it appears I misunderstood how the "labelNameIndex" should be set based on the label in use. There is no issue after all.
Thank you for your assistance!
Hi @HCKUO1117 ,
No apologies necessary! The whole label index is as intuitive as it could be. Glad you were able to print.
Don't hesitate to reach out anytime if there is anything else we can help with,
In my case,I need to print a 62mm X 29mm label with QL-810W.I have tried to set labelNameIndex to 8,but it return following error (labelNameIndex = 17 is OK,but I need to set the height to 29mm):
{labelType: -1, maxOfBatteryResidualQuantityLevel: -1, labelId: -1, isACConnected: {id: -1, name: Unknown}, batteryResidualQuantityLevel: -1, isBatteryMounted: {id: -1, name: Unknown}, batteryLevel: -1, errorCode: {name: ERROR_WRONG_LABEL, id: -1}}
Here is how I set the PrinterInfo:
Here is what PrinterInfo show after I setting:
Is it possible to print a W62H29 label in flutter?If it can,what is the correct setting(Sorry,I can't find the document about how to setting it)?
By the way,here is the label type I want to print: