OpenXml - How to identify whether the paragraph extends to next page
Posted
by
K.V.
on Stack Overflow
See other posts from Stack Overflow
or by K.V.
Published on 2011-11-17T09:51:51Z
Indexed on
2011/11/21
9:50 UTC
Read the original article
Hit count: 260
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.
© Stack Overflow or respective owner