爱普生ESC抽屉踢命令可以控制1或2现金抽屉。
ESC p m t1 t2
我们想使用WebClientPrint API webclientprint.azurewebsites.net打开现金抽屉。
打印文本文件时打印机工作正常。但是当我们将0x0A0x1B0x700x700x000x190xFA0x0A交给打印机现金抽屉时,这个命令没有打开。
然后,我使用另一种方法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();
}
发布于 2016-12-31 13:16:38
您是否尝试过将t1设置为更大的值(现在有了0x19,即25x2msec)?
https://stackoverflow.com/questions/41301589
复制相似问题