title: ESC/P programming!
body: <p>Why i need to use it is because for some printers using TPrinter prints some weird hieroglyph at the beginning of the printable area.</p>
  
  <p>My problem is that if i send some commands, nothing happens.</p>
  
  <p>ESC E (#27 #69) - Sending this escape sequence didn't work as i expected. It removed first letter and rest of the string made bold. eg. Hello -> <strong>ello</strong>. After i changed it to ESC E ESC (#27 #69 #27), it worked fine. This example i managed to figure out, but...</p>
  
  <p>trying to select character table "ESC t n" (#27 #116 n), to make "õäöü" work. This command just doesn't work. Nothing happens! And this command is supported by esc/p, esc/p 2 and 9-pin esc/p, so it should work just fine.</p>
  
  <p>Manual can be found <a href="http://support.epson.ru/upload/library_file/14/esc-p.pdf" rel="nofollow noreferrer">here</a>.</p>
  
  <p>If anyone has ever needed to use esc/p commands then maybe one can shed some light how to work with them!</p>
  
  <p>Thanks in advance!</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>In my previous <a href="https://stackoverflow.com/questions/5936511/printing-with-esc-p-commands">post</a> i asked more or less the same question though answers were about how did i send commands to the printer. (I'll change my question there according to what was the answers!)</p>
  
  <p>I accepted Ken's answer, because he claimed that the way i transferred the commands wasn't the best and i got it to work with Escape command.
  The problem was that after trying to use my program with another printer, it didn't work as expected, because it uses TPrinter.Begindoc and EndDoc.</p>
  
  <p>So actually i must use the other solution that Rob Kennedy helped me with!</p>
  
  <p><strong>EDIT 2:</strong></p>
  
  <p>As it turned out, i used wrong manual, where commands are little different (though still supporting esc/p as it proclaims). Thank you all for your help!</p>
  
  <p><strong>PS!</strong>
  I still have a question: I need a character table where</p>
  
  <pre><code>245 = õ
  228 = ä
  246 = ö
  252 = ü
  </code></pre>
  
  <p>which is iso 8859. But in manual there is no such character table or any similar to it. Should i do some string manipulation and replace eg 228 to 132 or does anyone know any better approuch?</p>
  
  <p>I keep it unanswered for a while, and then accept stukelly's answer.</p>