首页 > 解决方案 > Printer Android - 打印机在行首打印点

问题描述

我正在尝试在具有本机反应的蓝牙 dpp 350 打印机上打印。打印机正在正确打印。但是,每行的开头都会有一个点离开。

我已经尝试了几种编码和代码页,但我无法删除行首的那个点。

我正在使用 react-native-bluetooth-escpos-printer 库

let config = {
     encoding: 'ISO8859_1',
     codepage: 1,
     widthtimes: 0,
     heigthtimes: 0,
     fonttype: 1
}

await  BluetoothEscposPrinter.printText("Testando impressão!\r\n", config);     
await  BluetoothEscposPrinter.printText("I need help!\r\n", config);     
await  BluetoothEscposPrinter.printText("I need help!\r\n", config);     
await  BluetoothEscposPrinter.printText("I need help!\r\n", config);     
await  BluetoothEscposPrinter.printText("I need help!\r\n", config);

在此处输入图像描述

请问,有谁知道如何从行首删除这一点?

标签: androidreact-native

解决方案


推荐阅读