title: Label printing development using b-pac SDK in a C# application
body: <p>I am developing a <strong>C# application of POS system in Visual Studio 2012 RC</strong>. I have to print the sales on label printer using </p>
  
  <blockquote>
    <p><strong>Brothers P-Touch QL-500 Label printer.</strong></p>
  </blockquote>
  
  <p><strong>WHAT I HAVE DONE ALREADY.</strong></p>
  
  <ul>
  <li><strong>I have installed latest b-pac SDK 3.0</strong></li>
  <li><strong>Successfully add reference to my C# application.</strong></li>
  <li><strong>For creating label templates i have installed latest version of p-touch Editor 5.0.</strong></li>
  <li><p><strong>Made one template (Mylabel.lbl).</strong> </p>
  
  <p>But before that. </p></li>
  </ul>
  
  <p><strong>I run some of the built in Examples but those examples Throws an Exception.</strong> After doing alot of search on Google I found that this is the <strong>printer's driver Problem</strong>. </p>
  
  <p>i can't install the driver because Driver's installation requires a printer to be connected. 
  <strong>I DON'T HAVE THE PRINTER.</strong></p>
  
  <blockquote>
    <p><strong>WHAT I NEED TO DO</strong></p>
  </blockquote>
  
  <ul>
  <li>Do you have any idea that how can i do this task.</li>
  <li><p>what is the right way of printing a label using <strong>Brothers P-Touch QL-500 Label printer</strong>.</p>
  
  <blockquote>
    <p>Please Help me I have done alot of time on searching. stackoverflow is my last hope. I am new to such label printing. Please help i will be greatly thankful.</p>
  </blockquote></li>
  </ul>
  
  <p><strong>The ruff example Code i am using.</strong></p>
  
  <pre><code>bpac.DocumentClass doc = new DocumentClass();
  if (doc.Open("templateFile.lbx"))
  {
      doc.GetObject("field1").Text = "...";
      doc.GetObject("field2").Text = "...";
  
      doc.StartPrint("", PrintOptionConstants.bpoDefault);
      doc.PrintOut(1, PrintOptionConstants.bpoDefault);
      doc.EndPrint();
      doc.Close();
  }
  </code></pre>
  
  <p>This is the example code which i am trying. the very first line throws an exception</p>
  
  <pre><code>bpac.DocumentClass doc = new DocumentClass();
  </code></pre>
  
  <p>I am Also attaching a Exception Screen Preview.</p>
  
  <p><img src="https://i.stack.imgur.com/Tl3WU.png" alt="Thrown Exception Screen Preview"></p>