OpenXml - How to identify whether the paragraph extends to next page
- by K.V.
From aspx page, I dynamically add paragraphs to a word document using OpenXml SDK. In this case, a page break within a paragraph is not allowed. So in case a paragraph starts in middle of page 1 and extends to page2 then it should actually start in Page2. However, if it ends in the same page it is okay.
How to achieve this? Is there a way to set in th document that page break is not allowed within a paragraph? Any input is highly appreciated.