I use OpenXml to create Word document with simple text and some tables under this text. How can I force Paragraph with this text to show always on new page? Maybe this paragraph should be some Header but I’m not sure how to do this.
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can create a page break within a Run element using the
<w:br>element. In raw OpenXML, it would look something like:If you’re using the OpenXml SDK, you can use
EDIT:
If you just want to specify that a paragraph is the last thing on a page, you can try the
<w:lastRenderedPageBreak />tag.