Linking Map to Express Report

Executing the example requires that repository contains an express report with the Expr_1 identifier and a map with the New_Map_1 identifier.

Sub Main;

Var

MB: IMetabase;

MObj: IMetabaseObject;

Expr: IEaxAnalyzer;

Begin

MB := MetabaseClass.Active;

MObj := MB.ItemById("Expr_1").Edit;

Expr := MObj As IEaxAnalyzer;

Expr.Topobase := MB.ItemById("New_Map_1").Bind As ITopobase;

Expr.Map.Visible := True;

MObj.Save;

End Sub Main;

After executing the example the New_Map_1 map is set for the express report. The map is shown on opening the report.

See also:

Examples