title: Why is this ZPL code printing text in middle of label for Zebra printer (and sometimes then prints extra blank label)?
body: <h2>Problem</h2>
  
  <p>I have a Zebra ZD500R printer. I have a label that is 1.0” x 1.75”. I have a simple winform C# and .NET application that prints ZPL code to a label. The undesired result is shown below. Clearly the printed label is not matching my Zebra Label design: </p>
  
  <p><strong>Problem Label</strong>
  <a href="https://i.stack.imgur.com/jXrru.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jXrru.jpg" alt="enter image description here"></a></p>
  
  <p><strong>Label Design</strong>
  <a href="https://i.stack.imgur.com/lRFIQ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lRFIQ.jpg" alt="enter image description here"></a></p>
  
  <p><strong>Zebra Printer Settings for label design</strong> </p>
  
  <p><a href="https://i.stack.imgur.com/nJvQV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nJvQV.png" alt="enter image description here"></a></p>
  
  <p>The ZPL code was generated by printing the zebra designer label to a file.  </p>
  
  <h2>Code</h2>
  
  <p>The following is the ZPL code that is sent directly to the printer for printing. </p>
  
  <pre><code>string ZPLString =
                  "^XA~TA000~JSN^LT0^MNW^MTT^PON^PMN^LH0,0^JMA^PR4,4~SD10^JUS^LRN^CI0^XZ" +
                  "^XA" +
                  "^MMT" +
                  "^PW229" +
                  "^LL0339" +
                  "^LS0" +
                  "^FT210,284^A0I,42,40^FH\\^FDSample^FS" +
                  "^FT208,216^A0I,42,40^FH\\^FD94551337^FS" +
                  "^PQ1,0,1,Y"+
                  "^XZ";
  </code></pre>
  
  <h2>Attempts</h2>
  
  <p>I have done the following trying to solve this problem: </p>
  
  <ul>
  <li><a href="https://www.zebra.com/content/dam/zebra/manuals/en-us/software/zpl-zbi2-pm-en.pdf" rel="nofollow noreferrer">RTFM by Zebra</a></li>
  <li>Sample Code (only hello world with no settings on printer) </li>
  <li>I tried portrait and all other settings for the ZPL code and only got a variant of the problem as shown above. </li>
  </ul>
  
  <p>I eventually want to encode an RFID label, but they are expensive. I don't want to test until I am sure I got the label printing part working correctly. Any advice, tips, or comments would be deeply appreciated.</p>