PrinterHelper.SetBold(“1”);
PrinterHelper.SetMag(“2”, “2”);
PrinterHelper.Text(PrinterHelper.TEXT, “8”, “0”, “10”, “30”, “啦啦啦”)
PrinterHelper.SetMag(“1”, “1”);
PrinterHelper.SetBold(“0”);
PrinterHelper.InverseLine(“0”, “0”, “700”, “0”, “100”);
PrinterHelper.Text(PrinterHelper.TEXT, “8”, “0”, “0”, “130”, “啦啦啦”);
PrinterHelper.Text(PrinterHelper.TEXT, “3”, “0”, “0”, “160”, “啦啦啦”);
PrinterHelper.Text(PrinterHelper.TEXT, “3”, “0”, “0”, “190”, “啦啦啦”);
PrinterHelper.PrintQR(PrinterHelper.BARCODE, “10”, “240”, “2”, “16”, “eyJxcl90eXBlIjoic3RhZmYiLCJvc19pZCI6Nn0=”);
PrinterHelper.Form();
PrinterHelper.Print();
}
} catch (Exception e) {
Log.e(TAG, “printCPCL: =======>553” + e.getMessage());
e.printStackTrace();
}
}
}
}).start();
}
相关的方法在厂家集成文档中都有详细的描述,我就不在这里做过多的赘述了。效果如下图&#x