Page break element

Page break element

There are several ways to force an extra page in the output: 

  1. Add an extra page element
  2. An overflow of detail lines in the body of a page.
  3. Insert a page break element in your template.

 

This section covers the third option. You can insert a dynamic page break for the current page element by inserting this page break element:

  NG2PageBreak0001


You find this icon by clicking the '+' icon to reveal the second row of design elements:

 NG2PageBreak0002

 

The element can be inserted inside an If element or select element to be dynamically executed.


When the page break element is executed then this happens:

  1. All rendering of the current page body will stop.
  2. Only the footer of the page will be executed before a page break.
  3. A page break is done and processing continues on the next page while repeating the header and footer - if defined.
    • Related Articles

    • Line break element

      The line break element can only be inserted in a container (or page element), which has a horizontal flow direction (row). The line break element is found here in the list of elements in the designer: If you insert this then the following text is ...
    • Page element

      The page element in InterFormNG2 is the container of all the physical elements, that build up the output. A new template is created with a page element as you need that in order to generate any output at all. You insert an additional page element ...
    • Page header

      If you are creating a normal business document e.g. an invoice, then you probably want a fixed header with customer name and address and column headings for the detail lines. Such elements must be inserted in the page header element. To create a page ...
    • Page footer

      If you want to keep the same footer for all pages of a merge, then you should normally insert them in a footer element of the page element. To create a page footer element you need to right-click on the page element in the element tree and here ...
    • Page body

      The body section of a page If you add a header or footer element to a page, a body element is automatically included as well. The body elements contains the elements, that should only be executed/inserted once. This section normally includes the ...