I am using Pos for .net.
Below is a vb code, how can I convert to c# to print receipt:
Public Const ESC = Chr(&H1B) & "|"
Public Const SetBold = ESC & "bC"
Public Const SetUnderline = ESC & "uC"
Public Const SetItalic = ESC & "iC"
Public Const SetCentre = ESC & "cA"
Public Const SetRight = ESC & "rA"
Public Const ResetFormatting = ESC & "N"
Dim msg As String = "This is a test" & vbCrLf & SetBold & SetSize(3) & SetCentre & "it works" & SetSize(1) & " pretty well" & vbCrLf & "OK"