c# - Print using epson esc/p2 on TM U325D -


i print text in bold style using epson esc commands, however, when use esc f, lose first letter.

serialport.write(new char[] { (char)27, (char)69 }, 0, 2); serialport.write("line in bold"); 

i got:

ine in bold

i guess missing send printer.

you need use byte[]:

serialport.write(new byte[] { 27, 69 }, 0, 2); serialport.write("line in bold"); 

using char creates unicode characters utf16...


Comments

Popular posts from this blog

javascript - Iterate over array and calculate average values of array-parts -

ASP.NET Javascript: window.open won't work twice -

jquery - Opera does not change the height of the page. Why? -