title: How to read MS Word paragraph and table content line by line
body: <p>I am reading word document in C# (3.5) using <code>Microsoft.Office.Interop.Word</code>. Reading line by line, splitting line into array[] and processing every word of line and based on some business logic replacing some words and after the replacement of words, replacing the complete line with converted line.</p>
  
  <p>Till now Every thing is working fine.</p>
  
  <p>Now i have some word documents, those are having paragraph and tables. I want to read every Column of the table one by one and replace the content of the column in particular column.</p>
  
  <p><strong>Update</strong></p>
  
  <hr>
  
  <p>Using Office Automation</p>
  
  <pre><code>1. Opening word file.
  2. Moving cursor to top of the document
  3. Selecting first line using (`wordApp.Selection.endKey`) and processing all words
  4. After processing the words replacing the selected line with the processed line.
  5. Using wordApp.Selection.MoveDown(ref lineCount, ref countPage, ref MISSING);    
     moving next line processed further.
  </code></pre>
  
  <p>Problem:
  1. When reading table it reads only first column when using <code>wordApp.Selection.endKey</code></p>
  
  <p>I want to process all column's data.
  Is there any way to identify whether content is paragraph or table?</p>
  
  <p><img src="https://i.stack.imgur.com/crgu9.jpg" alt="enter image description here"></p>