Create page break (W)

Modified on Mon, 5 Oct at 1:55 PM

This feature can be used to insert a new chapter in a Word document as it inserts a section break at cursor's position and the next paragraph is formatted in a defined style.

CMD

<Cmd case="BaseExtensions:create-page-break"/>

Parameters

styleName

Define the name of the style that should be applied after the page break. We support both custom styles and built-in styles. Nonetheless, the particular style must be present in the document.

If the defined style is invalid, all available styles will be written into the Word.log.

breakMode

Define the type of break with a enum value from this list, e.g. wdSectionBreakEvenPage.

If the value is invalid, all available values will be written into the Word.log.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article