IMap.SaveXAMLToFile

Syntax

SaveXAMLToFile(FileName: String; Rect: IGxRectF; [Scale: IGxRectF = Null]);

Parameters

FileName - path, name and type of a file.

Rect - map coordinates and dimensions (in mm).

Scale - map scale. Default scale is 1.0.

Description

The SaveXAMLToFile method loads a map to XAML file (*.xaml).

Example

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

Sub UserProc;

Var

Report : IPrxReport;

TabObj: ITabObject;

Map: IMap;

Rect: IGxRectF;

Begin

TabObj := Report.Sheets.Item(0).Table.Objects.Item(0);

Map := TabObj As IMap;

Rect := Map.View.ViewRect;

Map.SaveXAMLToFile("c:\Temp\Map.xaml", Rect);

End Sub UserProc;

After executing the example the map is loaded to the Map.xaml file.

See also:

IMap