C# CUSTOM VKP80iii Paper Ejector/Paper Cut

人走茶凉 提交于 2020-01-24 19:25:12

问题


I am using RawPrinterHelper class to print on a Custom VKP80iii. I can print but I cant Cut and Eject the Paper. Does any have a code which Cuts and Ejects the Paper?

I tried a lot of Commands but none worked.

The last command I found but also didn´t work was :

string cutpaper = "" + Convert.ToChar(29) + Convert.ToChar(101)  + Convert.ToChar(3) + Convert.ToChar(32);
RawPrinterHelper.SendStringToPrinter(pd.PrinterSettings.PrinterName, cutpaper);

回答1:


After the kind support of Custom, the solution is writing the sequence:

this.WriteBytes(new byte[6]
      {
       (byte) 28,
       (byte) 80,
       (byte) 5,
       (byte) 1,
       (byte) 69,
       (byte) 5
      });


来源:https://stackoverflow.com/questions/55550276/c-sharp-custom-vkp80iii-paper-ejector-paper-cut

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!