TEXT INSIDE A SECTION

Home Forums WordprocessingML TEXT INSIDE A SECTION

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #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 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.