We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

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

Thread ID:

Created:

Updated:

Platform:

Replies:

68289 Sep 16,2007 09:49 PM Sep 25,2007 06:56 AM Windows Forms 3
loading
Tags: DocIO
jeonghwan byun
Asked On September 16, 2007 09:49 PM

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

Melba Winshia [Syncfusion]
Replied On September 17, 2007 08:19 AM

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

jeonghwan byun
Replied On September 17, 2007 08:25 AM

Thank You Very Much...

Melba Winshia [Syncfusion]
Replied On September 25, 2007 06:56 AM

Hi,

Thank you for the update.

Please let me know if you have any other questions.

Thanks,
Melba

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;