I would know if it''s possible reading table from a word files.

I would know if it's possible reading table from a word files.

3 Replies

MW Melba Winshia Syncfusion Team September 17, 2007 12:19 PM UTC

Hi,

Thank you for your interest in Essential DocIO.

Yes. It is possible to read table from a word file by accessing the TablesCollection object through the Section object.

[C#]

WordDocument document2 = new WordDocument();
// Opening an existing document file.
document2.Open(Path.Combine(Application.StartupPath, "Sample.doc"), FormatType.Doc);

//Get the section object using the Index
WSection section2= document2.Sections[0];
//Get the Table
WTable table1 = (WTable)section2.Body.Tables[0];

//Insert new value in the Table
table1[0, 0].Paragraphs[0].Text=("Modified");
table1[1, 1].Paragraphs[0].Text=("Modified");

Please refer the sample in the below link which illustrates the above.

http://websamples.syncfusion.com/samples/DocIO.Windows/37358/main.htm

Please try this and let me know if this helps.

Thanks,
Melba


JB jeonghwan byun September 17, 2007 12:25 PM UTC

Thank You Very Much...


MW Melba Winshia Syncfusion Team September 25, 2007 10:56 AM UTC

Hi,

Thank you for the update.

Please let me know if you have any other questions.

Thanks,
Melba

Loader.
Up arrow icon