title: Send escape character to printer
body: <p>I am developing an C# application to print labels from a thermal transfer printer from SATO (CG408 TT)</p>
  
  <p>For this I am using SBPL (Programming language for SATO). Which looks something like following: </p>
  
  <pre><code>&lt;ESC&gt;A
  &lt;ESC&gt;H0050&lt;ESC&gt;V0100&lt;ESC&gt;L0303&lt;ESC&gt;XMSATO
  &lt;ESC&gt;H0050&lt;ESC&gt;V0200&lt;ESC&gt;B103100*SATO*
  &lt;ESC&gt;H0070&lt;ESC&gt;V0310&lt;ESC&gt;L0101&lt;ESC&gt;XUSATO
  &lt;ESC&gt;Q1&lt;ESC&gt;Z
  </code></pre>
  
  <p>To communicate with Printer and send raw data to it I am following <a href="http://support.microsoft.com/kb/322091" rel="nofollow">this</a> technique.  At first i am trying to build the escape sequences using StringBuilder Class. </p>
  
  <pre><code>StringBuilder sb = new StringBuilder();
                sb.AppendLine();
                sb.AppendLine("&lt;ESC&gt;A");
                sb.AppendLine("H0050&lt;ESC&gt;V0100&lt;ESC&gt;L0303&lt;ESC&gt;XMSATO");
  </code></pre>
  
  <p>and so on....</p>
  
  <p>But how can I replace <code>&lt;ESC&gt;</code> part in string builder argument. I know that character 27, but then how to use it with AppendLine Command</p>
  
  <p>Thanks in advance.</p>