title: How to send a raw ZPL to zebra printer using C# via USB
body: <p>I'm a beginner C# programmer. I have a project that requires me to send the raw command to Zebra printer LP 2844 via USB and make it work. I did a lot of research and tried to figure out a way to do that. I'm using the code from <a href="http://support.microsoft.com/kb/322091" rel="noreferrer">http://support.microsoft.com/kb/322091</a>, but it didn't work. Based on my test, it seems that I have sent commands to the printer, but it didn't respond and print. I have no idea about this. Can someone help me out?</p>
  
  <p>I'm using button to send the command directly</p>
  
  <pre><code>private void button2_Click(object sender, EventArgs e)
  {
      string s = "A50,50,0,2,1,1,N,\"9129302\"";
  
      // Allow the user to select a printer.
      PrintDialog pd = new PrintDialog();
      pd.PrinterSettings = new PrinterSettings();
      if (DialogResult.OK == pd.ShowDialog(this))
      {
          // Send a printer-specific to the printer.
          RawPrinterHelper.SendStringToPrinter(pd.PrinterSettings.PrinterName, s);
          MessageBox.Show("Data sent to printer.");
      }
  }
  </code></pre>