Asp.net mvc 4 无法通过使用EPSON tm-t88V asp.net MVC的WebClient打印SDK打开现金抽屉

Asp.net mvc 4 无法通过使用EPSON tm-t88V asp.net MVC的WebClient打印SDK打开现金抽屉,asp.net-mvc-4,printing,epson,Asp.net Mvc 4,Printing,Epson,Epson ESC POS抽屉踢击命令可控制1个或2个现金抽屉 ESC p m t1 t2 我们想使用WebClientPrint API打开现金抽屉 webclientprint.azurewebsites.net 问题: 打印文本文件时,打印机工作正常。 但当我们给0x0A0x1B0x700x000x190xFA0x0A这个命令给打印机时 现金抽屉没有打开 然后我用另一种方法ESC/POS给打印机 [AllowAnonymous] public void PrintCommands(st

Epson ESC POS抽屉踢击命令可控制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();

    }

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