Tech Off Post

Single Post Permalink

View Thread: Problems with Chr(0)
  • User profile image
    figuerres

    jh71283 said:
    Yggdrasil said:
    *snip*


    It just spits out a few blank lines and that's it.


    I can't understand why they would choose chr(0) as the code to reset?

    This was specified by Espon in the design of esc/pos, not MS, I might add.

    this looks like it works:

    StringBuilder Stb = new StringBuilder();
    Stb.Append("foo \x1b!\x00 Barf Gog.");
    String goog = Stb.ToString();

    try appending "\x00"  and see how that works.
    the above makes a string that does have all of the values. 

    I am at home so I can't try sending it to the printer right now.