title: TextBox positioning in OpenXML
body: <p>I am new in OpenXML. I am trying to create the word(.docx) file having simple text and images in it using openxml. I have already mentioned all this in my earlier post:  </p>
  
  <p><a href="https://stackoverflow.com/questions/39425646/how-to-add-text-on-desired-coordinates-on-new-word-file-using-openxml/39627009?noredirect=1#comment66688109_39627009">My Earlier post</a></p>
  
  <p>I am using this code</p>
  
  <pre><code>WordprocessingDocument doc = WordprocessingDocument.Create("E:\\test11.docx", DocumentFormat.OpenXml.WordprocessingDocumentType.Document);
          {
              MainDocumentPart mainPart = doc.AddMainDocumentPart();
              mainPart.Document = new Document();
              Body body = mainPart.Document.AppendChild(new Body());
              Paragraph para = body.AppendChild(new Paragraph());
              ParagraphProperties oParagraphProperties = para.AppendChild(new ParagraphProperties());
              Run run = para.AppendChild(new Run());
              Text tt = new Text(str);
              run.AppendChild(tt);
              RunProperties runProp = new RunProperties(); // Create run properties.
              RunFonts runFont = new RunFonts() { Ascii = "Cambria(Headings)", HighAnsi = "Cambria(Headings)" };
              Bold bold = new Bold();
              DocumentFormat.OpenXml.Wordprocessing.Color Color1 = new DocumentFormat.OpenXml.Wordprocessing.Color() { Val = "0EBFE9" };
              Italic ita = new Italic();
              runProp.Append(bold);
              runProp.Append(Color1);
              runProp.Append(ita);
              FontSize size = new FontSize();
              size.Val = new StringValue((fontSize * 2).ToString());  // 48 half-point font size
              runProp.Append(runFont);
              runProp.Append(size);
              run.PrependChild&lt;RunProperties&gt;(runProp);
          }
  </code></pre>
  
  <p>That works fine for creating simple .docx file but i am having some coordinates and width height issues in text boxes. You can have a look on attached screenshots for understanding properly the issue.</p>
  
  <p><a href="https://i.stack.imgur.com/1dDxS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1dDxS.png" alt="My Output"></a>
  My output file</p>
  
  <p><a href="https://i.stack.imgur.com/zli56.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zli56.png" alt="Original file"></a></p>
  
  <p>Original File</p>
  
  <p>I want to create a file having text on same position like <strong>Original file</strong>. 
  Thanks.</p>