我有 Brother QL-710W 标签打印机,我尝试使用 Brother 的 SDK 通过 WIFI 打印,但每次我收到 ERROR_WRONG_LABEL 错误,
我努力了
尝试使用用于标签打印机的 Android Brother Sdk 进行无线打印时出现 ERROR_WRONG_LABEL
通过 WIFI 使用 Brother SDK 进行 Android 打印 (ERROR_WRONG_LABEL)
但没有解决方案有效,
我的代码如下
mPrinterInfo.printerModel = PrinterInfo.Model.QL_710W;
mPrinterInfo.port = PrinterInfo.Port.NET;
mPrinterInfo.ipAddress = "192.168.8.100";
//mPrinterInfo.labelNameIndex = 5;
mPrinterInfo.paperSize = PrinterInfo.PaperSize.CUSTOM;
mPrinterInfo.paperPosition = PrinterInfo.Align.CENTER;
mPrinterInfo.orientation = PrinterInfo.Orientation.LANDSCAPE;
mPrinterInfo.labelNameIndex = LabelInfo.QL700.valueOf("W50").ordinal();
mPrinterInfo.isAutoCut = true;
mPrinterInfo.isAutoCut = true;
mPrinterInfo.isCutAtEnd = true;
LabelInfo mLabelInfo = new LabelInfo();
mLabelInfo.labelNameIndex = LabelInfo.QL700.valueOf("W50").ordinal();
mLabelInfo.isAutoCut = true;
mLabelInfo.isEndCut = true;
mLabelInfo.isHalfCut = false;
mLabelInfo.isSpecialTape = false;
mPrinter.setPrinterInfo(mPrinterInfo);
mPrinter.setLabelInfo(mLabelInfo);
但是 Brother 的 Android 应用程序正在成功打印,没有任何错误。