TEXT INSIDE A SECTION

Home Forums WordprocessingML TEXT INSIDE A SECTION

This topic contains 3 replies, has 2 voices, and was last updated by  Manu_TR 8 years, 4 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #3645

    Manu_TR
    Participant

    Is there a way to extract the text all the sections separately using openxml?

    #3647

    Manu_TR
    Participant

    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

    #3651

    Eric White
    Keymaster

    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:

    Introduction to WordprocessingML

    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.

    #3654

    Manu_TR
    Participant

    Thank you very much Eric, this was very helpful.

    Although the process of splitting sections is bit slower thanks again!.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.