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.

Parse text from TOC

Thread ID:

Created:

Updated:

Platform:

Replies:

127088 Oct 25,2016 09:28 AM Oct 26,2016 08:31 AM ASP.NET Web Forms 1
loading
Tags: DocIO
Mauricio Roberto Cruz
Asked On October 25, 2016 09:28 AM

Hi,

I've been trying to parse all text from Table of Contents from a document I created using MSWord only.

I know I can get the TOC by checking if any ChildEntity has EntityType == EntityType.TOC, however I can't see a way to loop through all content inside a Table of Content to get texts, as I couldn't find any inside TableOfContents class.

I need to be able to extract Texts from any TOC inside a word document, but can't find a way using syncfusion.

Could you please help me on this?

Thanks!
- Mauricio

Sethumanikkam Yogendran [Syncfusion]
Replied On October 26, 2016 08:31 AM

Hi Mauricio,

Thank you for contacting Syncfusion support.

I need to be able to extract Texts from any TOC inside a word document, but can't find a way using Syncfusion. Could you please help me on this?
Yes, you can extract Text from TOC by iterating through its elements. We have prepared a sample to meet your requirement. In this sample, we have done the following things,

1. Loaded the template Word document which has TOC inside of it.
2. Iterated TOC entries from document and found text in it.
3. Added found text in String Builder.
4. Shown the result of text in Message Box.

Please find the below sample which illustrates the same, and let us know if it helps you.
http://www.syncfusion.com/downloads/support/forum/127088/ze/DocIOApplication-127088-1126787915.zip

Note: Find input Word document (Template.docx) from “Data” folder inside the DocIO Application.

If we misunderstood your requirement, kindly update us requirement with clear description. Thereby we will analyze further on the mentioned requirement and update you with appropriate solution.

Please let us know if you have any other questions.

Thanks,
Sethumanikkam.Y


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.

;