変数を含む事前に作成されたラベル(Zeba Label Designerを使用して作成)を印刷し、印刷する前にそれらの変数を設定するにはどうすればよいですか。
次のコードがありますが、変数の設定方法がわかりません(たとえば、デザインしたラベルにQRコードがあり、印刷する前にデータを設定したい)。
TcpPrinterConnection zebraPrinterConnection = new TcpPrinterConnection("192.168.1.100", TcpPrinterConnection.DEFAULT_ZPL_TCP_PORT);
try {
ZebraPrinter printer = ZebraPrinterFactory.getInstance(zebraPrinterConnection);
printer.getFileUtil().sendFileContents("/sdcard/documents/labels/sample.lbl");
zebraPrinterConnection.close();
} catch (ZebraPrinterConnectionException e) {
e.printStackTrace();
} catch (ZebraPrinterLanguageUnknownException e) {
e.printStackTrace();
} catch (ZebraIllegalArgumentException e) {
e.printStackTrace();
}