Search code examples
c#printingpos

C# CUSTOM VKP80iii Paper Ejector/Paper Cut


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);

Solution

  • 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
          });