EvenPageHeader: IEaxHeader;
The EvenPageHeader property returns parameters of even pages headers.
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.
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;
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: