TEXT INSIDE A SECTION
- This topic has 3 replies, 2 voices, and was last updated 9 years, 6 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Home › Forums › WordprocessingML › TEXT INSIDE A SECTION
Tagged: TEXT INSIDE A SECTION
Is there a way to extract the actual text content of all the sections separately using openxml? similar to word interop?
Thanks in Advance
Manu
There isn’t a way to do this using the Open XML SDK directly, but it is not hard.
One thing to review is how revision markup is put into the main document part. Check out screen-cast #8 in the following series:
There is a DocumentBuilder example that shreds a document into sections. See the second example in the DocumentBuilder02.cs example, in Open-Xml-PowerTools. This might be an easy solution to your issue – first shred the document into sections, and then open the desired shredded document, then retrieve the text.
Thank you very much Eric, this was very helpful.
Although the process of splitting sections is bit slower thanks again!.