title: Designing Raw Data Printing
body: <p>I having difficulties when sending Raw Data to receipt printer. I am using Builtin C# (Visual Studio 2008 ,FrameWork 3.5) PrintDocument() function. But it is slow while sending data to printer. And keeps busy my program. So I started to search to overcome this problem and I found <a href="http://support.microsoft.com/kb/322091" rel="nofollow">this</a>. Great article, I can print directly to printer, but I am unable to design. For ex:</p>
  
  <pre><code>Quan:  Product Name:         Total:
  ------------------------------------    
  1 x    Product 1             1,5 USD
  2 x    Product 2             2,5 USD
  ------------------------------------
  Bill No    : 5126
  User       : SomeUser
  
          THANKS FOR COMING
  </code></pre>
  
  <p>Above design what I want, but I couldn't make it. I read something about ESC code but I couldn't found how to use it properly, and of course WHAT ARE THE ESC CODES. I read lots of article but I couldn't found an example clearly. In a word</p>
  
  <p>HOW TO DESIGN RAW DATA USING ESC CODES</p>