I am trying to print using tags from my Android application that uses the wifi commands of the Brother QL-720NW Label Printer . Since I was performing factory reset on the printer, I get this error
Problem: ERROR_WRONG_LABEL (means the wrong movie specified in the sdk manual), the error was selected in the print command, since I performed factory reset on the printer.
CODE:
void printTemplateSample()
{
Printer myPrinter = new Printer();
PrinterInfo myPrinterInfo = new PrinterInfo();
try{
myPrinterInfo = myPrinter.getPrinterInfo();
myPrinterInfo.printerModel = PrinterInfo.Model.QL_720NW;
myPrinterInfo.port=PrinterInfo.Port.NET;
myPrinterInfo.printMode=PrinterInfo.PrintMode.FIT_TO_PAGE;
myPrinterInfo.paperSize = PrinterInfo.PaperSize.A4;
myPrinterInfo.ipAddress="192.168.1.13";
myPrinterInfo.macAddress="00:80:92:BD:35:7D";
myPrinter.setPrinterInfo(myPrinterInfo);
Boolean val= myPrinter.startPTTPrint(6, null);
Log.i("print", "startPTTPrint "+val);
myPrinter.replaceText("abcde");
PrinterStatus status=myPrinter.flushPTTPrint();
Log.i("print", "PrinterStatus err"+status.errorCode);
}catch(Exception e){
e.printStackTrace();
}
}
- I use there sample code from here
- The goal is my ultimate goal - to replace the text in the template and print, but at the moment I can not print anything
- I am using this Brother SDK.
- ,
- Ptouch - .
, !