Header: IEaxHeader;
The Header property returns parameters of header.
To get parameters of footer, use the IEaxHeaders.Footer 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 header and footer indent
Param := Headers.Header;
Param.Margin := 10;
Param := Headers.Footer;
Param.Margin := 10;
Debug.Writeline("Header indent: " +
Headers.Header.Margin.ToString);
Debug.Writeline("Footer indent: " +
Headers.Footer.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 header and footer indent
Param := Headers.Header;
Param.Margin := 10;
Param := Headers.Footer;
Param.Margin := 10;
System.Diagnostics.Debug.Writeline("Header indent: " +
Headers.Header.Margin.ToString());
System.Diagnostics.Debug.Writeline("Footer indent: " +
Headers.Footer.Margin.ToString());
(Express As IMetabaseObject).Save();
End Sub;
After executing the example, footer and header indent parameters will be determined. The console displays information about header and footer indents.
See also: