section (Section)

The layout node attribute that controls printing within a parent MiniPage.

In the Properties view, this property is the Section property in the Layout category.

This attribute of a Layout Node object specifies that the content of the node should print on its parent MiniPage at the location specified by this property.

Type: Enum.

When you select a MiniPage for a page header or footer, for example, you specify where the container should be printed on its parent MiniPage by setting the section property. The report output prints any headers and footers that you have set, based on priorities of each of these values:
firstPageHeader
The Page Header to be printed on the first page only; if this section is defined, subsequent Page Headers begin printing on the second page.
anyPageHeader
The Page Header for every page, unless separate Odd and Even Page Headers are defined.
oddPageHeader
Specific Page Header to be printed on odd pages.
evenPageHeader
Specific Page Header to be printed on even pages.
firstPageFooter
A Page Footer that prints on the first page only; if this section is defined, subsequent page footers begin printing on the second page.
anyPageFooter
The Page Footer for every page, unless separate Odd and Even Page Footers are defined.
oddPageFooter
Specific Page Footer to be printed on odd pages.
evenPageFooter
Specific Page Footer to be printed on even pages.
lastPageFooter
A Page Footer that prints on the last page only. For the last page, this node takes priority over oddPageFooter, evenPageFooter or anyPageFooter nodes. A node with this section value set must be located as the last in the sibling list.
itemSeparator
Prints between each sibling element, as long as there is more than one element.

If you have an anyPageHeader and a firstPageHeader, for example, the anyPageHeader content will print only on the second and subsequent pages.

Important: If you set the section property for any node, the node may not be preceded in its sibling list in the Report Structure tree by any nodes that do not have this property set.

A layout node with a defined section attribute is also known as a named port. A layout node without a defined section attribute is also knows as a primary port.

See Print Headers and Footers.