Template: Header, footer and body area

Template: Header, footer and body area

If you're looking to create a standard business document, you'll likely want to define a header, footer, and body area in your template.

 

When you first create a new template, then you only have one container in the page element. All of the design elements inside the page element are all only executed once, but if you want to define a header and/or a footer, that is to be included on all output pages, then you need to add a header and a footer section to the page.

 

You can accomplish this by right-clicking on the page element and selecting the header and/or footer options as shown below:

 NG2HeaderFooter0001

 

Inside the header and the footer you can insert the contents, that should be repeated for all the output pages. The header and footer does however not need to be fixed. You can e.g. use conditions via either the if element or the select element to define one header/footer for the first page of a document and another header/footer for the rest of the document.

 

You can also consider to use components to reuse the header and/or footer for multiple document types (invoices, credit notes, order confirmations etc.).

 

In the body area you can insert a repeat element to iterate across all the detail lines of the input file and generate a page overflow, when there is not enough room for more detail lines on the current page.

 

Here is a video that demonstrates how to use a header and footer:



 

 

    • Related Articles

    • Template examples

      This section includes some template examples: 1.The options for handling detail lines. 2.Set a header, footer and body area for a normal business document. 3.Large header on page 1 only. 4.Make room for total on last page. 5.Labels filled out from ...
    • 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 ...
    • Template: Large header on page 1 only

      When designing a business document, such as an invoice, you may want a large header on the first page and a much smaller header on the following pages. In the section below, you can learn how to create a flexible header to achieve this. First, let's ...
    • 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 ...
    • Template: Make room for total on last page

      If you're working with a standard business document, you're likely using the header and footer in your template. A simple example is provided in the section, Template: Header, footer and body area. However, you might have a specific requirement for ...