问题
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