Hey
can some help me
i get
error: cannot find symbol
ba.raiseEventFromDifferentThread(this , null, 0, "eventName" + "_metadata", true, new Object[] {printResult.errorCode.toString()});
^
can some help me
i get
error: cannot find symbol
ba.raiseEventFromDifferentThread(this , null, 0, "eventName" + "_metadata", true, new Object[] {printResult.errorCode.toString()});
^
B4X:
package michael.vegs;
import com.brother.ptouch.sdk.*;
import anywheresoftware.b4a.BA;
import anywheresoftware.b4a.BA.*;
@Version(3.0f)
@ShortName("BrotherPrintSDK")
@DependsOn(values={"BrotherPrintLibrary"})
public class BrotherPrintSDK {
public void print( final String filePath,final String printerIP){
Thread trd = new Thread(new Runnable(){
@Override
public void run() {
Printer myPrinter = new Printer();
PrinterInfo myPrinterInfo = new PrinterInfo();
PrinterStatus printResult = new PrinterStatus();
LabelInfo mLabelInfo=new LabelInfo();
myPrinterInfo = myPrinter.getPrinterInfo();
myPrinterInfo.printerModel=PrinterInfo.Model.QL_720NW;
myPrinterInfo.printMode=PrinterInfo.PrintMode.FIT_TO_PAGE;
myPrinterInfo.port=PrinterInfo.Port.NET;
myPrinterInfo.paperSize = PrinterInfo.PaperSize.CUSTOM;
myPrinterInfo.orientation = PrinterInfo.Orientation.PORTRAIT;
myPrinterInfo.numberOfCopies = 1;
myPrinterInfo.ipAddress=printerIP;
//myPrinter.skipStatusCheck=true;
mLabelInfo.labelNameIndex=LabelInfo.QL700.valueOf("W29H90").ordinal();
//mLabelInfo.labelNameIndex=5;
mLabelInfo.isAutoCut = true;
mLabelInfo.isEndCut =true;
myPrinter.setPrinterInfo(myPrinterInfo);
myPrinter.setLabelInfo(mLabelInfo);
printResult=myPrinter.printFile(filePath );
ba.raiseEventFromDifferentThread(this , null, 0, "eventName" + "_metadata", true, new Object[] {printResult.errorCode.toString()});
// }
}
});
trd.start();
}
}