HeaderTitle: String;
HeaderTitle: string;
The HeaderTitle property determines corner header text.
Text may be custom. The IEaxGrid.HeaderTitleType property with the EaxHeaderTitleType.Custom value must be used for a custom corner header text.
Executing the example requires that the repository contains an express report with the EXP_REPORT_HT identifier.
Add links to the Express, Metabase system assemblies.
Sub UserProc;
Var
MB: IMetabase;
MObj: IMetabaseObject;
Expr: IEaxAnalyzer;
Grid: IEaxGrid;
Begin
// Get current repository
mb := MetabaseClass.Active;
// Get express report
MObj := mb.ItemById("EXP_REPORT_HT").Edit;
Expr := MObj As IEaxAnalyzer;
// Get table
Grid := Expr.Grid;
// Set table corner text
Grid.HeaderTitleType := EaxHeaderTitleType.Custom;
Grid.HeaderTitle := "Custom text";
// Save report
MObj.Save;
End Sub UserProc;
After executing the example a custom text is set in the express report corner.
The requirements and result of the Fore.NET Example execution match with those in the Fore Example.
Imports Prognoz.Platform.Interop.Express;
…]
Public Shared Sub Main(Params: StartParams);
Var
MB: IMetabase;
MObj: IMetabaseObject;
Expr: IEaxAnalyzer;
Grid: IEaxGrid;
Begin
// Get current repository
mb := Params.Metabase;
// Get express report
MObj := mb.ItemById["EXP_REPORT_HT"].Edit();
Expr := MObj As IEaxAnalyzer;
// Get table
Grid := Expr.Grid;
// Set table corner text
Grid.HeaderTitleType := EaxHeaderTitleType.ehtCustom;
Grid.HeaderTitle := "Custom text";
// Save report
MObj.Save();
End Sub;
See also: