Как распечатать готовую этикетку (созданную с помощью 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();
}