I have a word document which contains some text and a table.
I am loading this document in TX TextControl.
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.
How can I traverse through each cell in a Table easily?
I have developed a solution but this code at times is extracting the cell borders also and this is messing up everything.
Here is the code snippet:
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
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.
TIA
Yogi Yang