IMapExporter.Map

Syntax

Map: IMap;

Description

The Map property determines a map to be exported.

Example

The examined example requires the Report object of the IPrxReport type.

Sub UserProc;

Var

Report : IPrxReport;

TabObj: ITabObject;

exp: MapExporter;

Map: IMap;

Begin

TabObj := (Report.Sheets.Item(0) As IPrxTable).TabSheet.Objects.Item(0);

Map := TabObj.Extension As IMap;

exp := New MapExporter.Create;

exp.Map := Map;

exp.PixelHeight := 300;

exp.PixelWidth := 500;

exp.Scale := 0.5;

exp.ExportToFile("d:\map.jpg", "jpg");

End Sub UserProc;

After executing the example the map is exported to file of the specified format (jpg).

See also:

IMapExporter