express ASCII charactor ESC in a string?

  • Thread starter Thread starter wang xin
  • Start date Start date
W

wang xin

I want to send PCL command to my printer. But I do not know how to express
ASCII charactor ESC in my command string.

Any suggestion? Thanks!
 
C#: \x1b
VB: Chr(27)

string sCmd = "\x1bP"; // ESC+P
Dim sCmd as String = Chr(27) + "P" ' Esc+P
 
Back
Top