Header and footer alignment and margins

You can define the alignment and as well as set the margins for your custom headers and footers in the document.

Alignment

Use the HorizontalAlignment and Verticalalignment parameters to define the alignment of the custom headers and footers in the report.

The following alignment settings can be specified for the parameters:

  • VerticalAlignment: 
    • Top
    • Middle
    • Bottom
  • HorizontalAlignment:
    • Left
    • Center
    • Right

Margins

You can also adjust the placement of the custom header or footer relative to the page edge (the page height and width) by using the HorizontalMargin and VerticalMargin parameters.

You must specify the number of points (in apostrophes) to adjust the margin as an offset, relative to the page edge. The custom margin uses the header or footer alignment as the starting point.

Note: The horizontal and vertical margin points are defined as 72 points per inch.

Horizontal margin specified for a right-aligned header.

HeaderStyle {HorizontalAlignment: 'Right', HorizontalMargin: '10' },

Kopibilledet mangler

The horizontal margin parameter offsets the header by 10 points, relative to the right edge of the page, using the right-aligned header as the starting point.