Page header

Page header

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 header element you need to right-click on the page element in the element tree and here select '+ Insert   >' and 'Header':

 

NG2PageHeader0001

 

After you have inserted the header the previous elements are now moved into the body of the page element:

 

NG2PageHeader0002

 

It is a very good idea to consider to use a component element to reuse the same header (or a part of the header) for many templates.

 

If you want to delete the Header section of the page, then you can left click on the Header section and press the <Delete> key on your keyboard.

 

 

Size of the header

The size of a page header is defined as the size of the dynamically positioned elements inside the header element of the page element.

 

Any fixed positioned elements inside it does not effect the size of the header. In this way the header can e.g. include a watermark, that overlaps the detail lines of the body without changing the size of the header or body.

 

One easy way to setup the size of the header is to insert a dynamically positioned container as the main element inside of the header element and set the height of this container to the height, that you want to reserve for the page header.

    • Related Articles

    • Template: Large header on page 1 only

      When you design a business document e.g. an invoice, then you might want a large header on page 1 and a much smaller header on the subsequent pages of your document. In the section below you can see, how you can create such a flexible header. First ...
    • Page overflow

      When you insert many dynamically positioned elements in your output, then InterFormNG2 will automatically force a page overflow. This section covers the page overflow in details: 1.Introduction 2.Flexible header size. 3.Flexible footer size - for a ...
    • Page body

      The body section of a page If you have inserted either a header or a footer element to a page element, then a body element is also added: The body elements contains the elements, that should only be executed/inserted once. This section normally ...
    • 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 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 ...