【问题标题】:Cash Drawer Not open via using WebClient Print SDK for EPSON tm-t88V asp .net MVCCash Drawer 无法通过使用 WebClient Print SDK for EPSON tm-t88V asp .net MVC 打开
【发布时间】:2017-05-09 04:01:52
【问题描述】:

Epson ESC POS Drawer Kick 命令可以控制 1 个或 2 个现金抽屉

ESC p m t1 t2

我们想使用 WebClientPrint API 打开钱箱 webclientprint.azurewebsites.net

问题: 打印文本文件时打印机工作正常。 但是当我们给 0x0A0x1B0x700x000x190xFA0x0A 这个命令给打印机 钱箱打不开。

然后我使用另一种方法 ESC/POS 给打印机。

[AllowAnonymous]
  public void PrintCommands(string useDefaultPrinter, string printerName)
    {

        ClientPrintJob cpj = new ClientPrintJob();
        cpj.BinaryPrinterCommands= System.IO.File.ReadAllBytes(Server.MapPath(@"~/App_Data/open.txt"));
        cpj.FormatHexValues = true;
        cpj.ClientPrinter = new DefaultPrinter();
        System.Web.HttpContext.Current.Response.ContentType = "application/octet-stream";
        System.Web.HttpContext.Current.Response.BinaryWrite(cpj.GetContent());
        System.Web.HttpContext.Current.Response.End();

    }

【问题讨论】:

    标签: asp.net-mvc-4 printing epson


    【解决方案1】:

    您是否尝试将 t1 设置为更大的值(现在您有 0x19,即 25 x 2 毫秒)?

    【讨论】:

      猜你喜欢
      • 2018-12-25
      • 2018-11-18
      • 2012-05-16
      • 1970-01-01
      • 1970-01-01
      • 2012-07-31
      • 2015-10-16
      • 1970-01-01
      • 2018-10-11
      相关资源
      最近更新 更多