jh71283 said:
littleguru said:
*snip*
D'OH!

So what you are basically saying, is that instead of building a string, I should build an array of bytes, and then send the byte array to the posprinter...

However I *think* that I need to pass a string to the posprinter, so surely if I convert the byte array back into string, it will terminate after the first chr(0).

hmm.
Confirmed. It needs to be a string that I pass to the posprinter.