IEaxHeaders.EvenPageHeader

Syntax

EvenPageHeader: IEaxHeader;

EvenPageHeader: Prognoz.Platform.Interop.Express.IEaxHeader;

Description

The EvenPageHeader property returns parameters of even pages headers.

Comments

To get parameters of the even pages footer, use the IEaxHeaders.EvenPageFooter property.

To use different headers and footers for odd and even pages, use the IEaxHeaders.OddAndEvenPagesHeaderFooter property.

Example

Executing the example requires that the repository contains express report with the EXPRESS identifier.

Add links to the Express, Metabase system assemblies.

Sub UserProc;
Var
    Metabase: IMetabase;
    Express : IEaxAnalyzer;
    Headers: IEaxHeaders;
    Param: IEaxHeader;
Begin
    Metabase := MetabaseClass.Active;
    Express := Metabase.ItemById("EXPRESS").Edit As IEaxAnalyzer;
    Headers := Express.HeadersFooters;
    // Set up indent of headers and footers for even pages
    Param := Headers.EvenPageHeader;
    Param.Margin := 15;
    Param := Headers.EvenPageFooter;
    Param.Margin := 15;
    // Take into account settings for even pages
    Headers.OddAndEvenPagesHeaderFooter := True;
    Debug.Writeline("Indent of the header of even pages: " + 
        Headers.EvenPageHeader.Margin.ToString);
    Debug.Writeline("Indent of footer of even pages: " + 
        Headers.EvenPageFooter.Margin.ToString);
    (Express As IMetabaseObject).Save;
End Sub UserProc;

Imports Prognoz.Platform.Interop.Metabase;
Imports Prognoz.Platform.Interop.Express;

Public Shared Sub Main(Params: StartParams);
Var
    Metabase: IMetabase;
    Express : IEaxAnalyzer;
    Headers: IEaxHeaders;
    Param: IEaxHeader;
Begin
    Metabase := Params.Metabase;
    Express := Metabase.ItemById["EXPRESS"].Edit() As IEaxAnalyzer;
    Headers := Express.HeadersFooters;
    // Set up indent of headers and footers for even pages
    Param := Headers.EvenPageHeader;
    Param.Margin := 15;
    Param := Headers.EvenPageFooter;
    Param.Margin := 15;
    // Take into account settings for even pages
    Headers.OddAndEvenPagesHeaderFooter := True;
    System.Diagnostics.Debug.Writeline("Indent of header of even pages: " + 
        Headers.EvenPageHeader.Margin.ToString());
    System.Diagnostics.Debug.Writeline("Indent of footer of even pages: " + 
        Headers.EvenPageFooter.Margin.ToString());
    (Express As IMetabaseObject).Save();
End Sub;

After executing the example indent parameters of even pages headers and footers will be determined. The console displays information about header and footer indents.

See also:

IEaxHeaders