【问题标题】:TSC printer not printing .BMP filesTSC 打印机不打印 .BMP 文件
【发布时间】:2021-02-24 12:52:21
【问题描述】:

打印机型号 tdm-20。

我需要打印 bmp 文件, 我的代码是:

        `macAddress = mBTDevices[position].address
         TscDll.openport(macAddress)
         TscDll.setup(100, 60, 1, 15, 0, 3, 0)

        TscDll.clearbuffer()
        TscDll.downloadbmp("test.bmp")

        TscDll.printlabel(1, 1)

        TscDll.closeport(5000)`

它不起作用。 打印机打印出清晰的人员。 我在 Android 10 上使用 Galaxy Note 9。 如果我发送文本,它的工作正常。

【问题讨论】:

标签: android printing barcode tsc thermal-printer


【解决方案1】:
TscEthernetDll.setup(100, 150, 4, 4, 0, 0, 0);
TscEthernetDll.clearbuffer();
TscEthernetDll.sendpicture(0,20,path);
TscEthernetDll.sendcommand("PUTBMP 100,520,\""+path+"\"\r\n");
Thread.sleep(1000);
TscEthernetDll.sendcommand("PRINT 1\r\n");

【讨论】:

    猜你喜欢
    • 2013-12-07
    • 2014-07-22
    • 1970-01-01
    • 1970-01-01
    • 2014-03-25
    • 1970-01-01
    • 2019-11-28
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多