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

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -