title: TX TextControl How to traverse through each Cell in a Table
body: <p>I have a word document which contains some text and a table.</p>
  
  <p>I am loading this document in TX TextControl.</p>
  
  <p>I want to traverse through each cell in TX TextControl and extract the contents of each cell and save them in various fields in RTF format in a DB.</p>
  
  <p>How can I traverse through each cell in a Table easily?</p>
  
  <p>I have developed a solution but this code at times is extracting the cell borders also and this is messing up everything.</p>
  
  <p>Here is the code snippet:</p>
  
  <pre><code>txImportFile.SelStart = txImportFile.TableCellStart(CurTableID, RowNum, 2) - 1
  txImportFile.SelLength = txImportFile.TableCellLength(CurTableID, RowNum, 2)
  mtd_question.RTFSelText = txImportFile.RTFSelText
  'Code to save textracted text and graphics to DB goes here
  </code></pre>
  
  <p>I want to note that the table is very big and spans across many pages. A documents average size is 47 pages from which the table itself occupies around 31 pages.</p>
  
  <p>TIA</p>
  
  <p>Yogi Yang</p>