Example:

0x0A
This is a test
0x0A0x0A0x0A
0x1B0x69

Test:

https://webclientprint.azurewebsites.net/DemoPrintCommands.aspx

https://jsprintmanager.azurewebsites.net/

Raw POS Command

    public class RawPosCommand
    {
                public const string ESC = "\x1B"; // ESC byte in hex notation
        public const string NEWLINE = "\x0A"; // LF byte in hex notation

        public const string INITIALIZE = ESC + "@"; // Initializes the printer (ESC @)

        public const string CUT = ESC + "\x69";

        public const string NEWLINE2 = NEWLINE + NEWLINE;

        public const string ALIGN_LEFT = ESC + "a" + "\x00"; // ESC a 0
        public const string ALIGN_CENTER = ESC + "a" + "\x01"; // ESC a 1

        public const string FONT_NORMAL = ESC + "!" + "\x00"; // ESC ! 0 
        public const string FONT_H2 = ESC + "!" + "\x18"; // Emphasized + Double-height mode selected (ESC ! (16 + 8)) 24 dec => 18 hex
        public const string FONT_H2W2 = ESC + "!" + "\x38"; // Emphasized + Double-height + Double-width mode selected (ESC ! (8 + 16 + 32)) 56 dec => 38 hex


    }
Last modified: April 14, 2021

Author

Comments

Write a Reply or Comment