1
votes

I have my application written using C#.net and open XML SDK(2.0).I have spitted the word file paragraph wise and section wise using open XML tags.But i could not find anything about split a word file page wise...

Pleas Guide me get out of this issue.

1
I think there is no such tag. The document is not divided to pages, the flow of the document is split during rendering. It was true for doc format, and it's very possible for docx.Sasha Reminnyi
Agreed with LexRama - there is no such tag. Word documents are flow documents and technically do not have "pages".Todd Main
thanks a lot.then what is the other options to get page wise splitting?Saravanan
see Eric's answer below.Todd Main

1 Answers

7
votes

However, after Word (or Word Automation Services) has rendered the document, you can find the w:lastRenderedPageBreak element, which, combined with hard page breaks, can let you know where page breaks are. There are no guarantees about this - you could potentially go into an Open XML document and alter content using the Open XML SDK, and then the w:lastRenderedPageBreak elements would not be in the correct place.