title: How do I read data from the control in Word Document usng Open XML
body: <p>I am writing a code in C# using <strong>Open XML SDK 2.0.</strong> I have defined some controls in <strong>Word document</strong> like TextBox, Select Option etc. I want to read their data programatically (sample given below)..</p>
  
  <pre><code>WordprocessingDocument InputWordDocument = WordprocessingDocument.Open(@"C:\Users\jayant\Desktop\Template.docx", false);
  foreach (Control ctrl in InputWordDocument.MainDocumentPart.Document.Body.Descendants&lt;Control&gt;())
  {
      Console.WriteLine(ctrl.Name.Value);
  }
  </code></pre>
  
  <p>But it shows the name of the controls not their values.</p>
  
  <p>How do I get thevalues?</p>