是否有任何离子代码可以使用离子3在蓝牙打印机上打印条形码



我正在尝试使用datecs打印机在纸上打印条形码。但是我在纸上没有得到正确的条形码。我还想打印一些带有条形码的卡纳达字母。

我尝试使用不同的插件,例如过去 1 周的 BTPrinter 和日期。 没有任何工作

window.DatecsPrinter.listBluetoothDevices(
function (devices) {
window.DatecsPrinter.connect(devices[0].address,
function () {
console.log(devices[0].address),
window.DatecsPrinter.printText(finalReceipt, 'UTF-8',
function () {
window.DatecsPrinter.setBarcode(3, true, 2, 3, 100);
window.DatecsPrinter.printBarcode(
75,
barcodeData,
function () {
alert('success!');
},
function (error) {
alert(JSON.stringify(error));
}
)
}, function (error) {
alert(JSON.stringify(error));
}
);
},
function (error) {
alert(JSON.stringify(error));
}
);
},
function (error) {
alert(JSON.stringify(error));
}
);

你说的不工作是什么意思?对我来说,DatecsPrinter适用于打印文本,条形码和图像。

最新更新