IMap.SaveToXml

Fore Syntax

SaveToXml(SaveMethod: MapXmlSaveMethod): String;

Fore.NET Syntax

SaveToXml(SaveMethod: Prognoz.Platform.Interop.Map.MapXmlSaveMethod) : System.String;

Parameters:

SaveMethod. The method used for loading.

Description:

The SaveToXml method loads a map to XML format.

Fore Example

Executing the example requires an express report with the EXPRESS_REPORT identifier and a map on it.

Sub UserProc;
Var
    MetaBase: IMetabase;
    XMLSave: string;
Begin
    MetaBase := MetabaseClass.Active;
    XMLSave := (MetaBase.ItemById(
"EXPRESS_REPORT").Bind As IEaxAnalyzer).Map.Map.SaveToXml(MapXmlSaveMethod.Visual);
    Debug.WriteLine(XMLSave);
End Sub UserProc;

After executing the example express report map formatting is loaded to XML format.

Fore.NET Example

Executing the example requires an express report with the EXPRESS_REPORT identifier and a map on it.

Imports Prognoz.Platform.Interop.Metabase;
Imports Prognoz.Platform.Interop.Express;
Imports Prognoz.Platform.Interop.Map;
Imports Prognoz.Platform.Interop.Tab;
Imports System.Diagnostics;

Public Sub Main(Params: StartParams);
Var
    MetaBase: IMetabase;
    XMLSave: string;
Begin
    MetaBase := Params.Metabase;
    XMLSave := (MetaBase.ItemById["EXPRESS_REPORT"].Bind() As IEaxAnalyzer).Map.Map.SaveToXml(MapXmlSaveMethod.mxsmVisual);
    System.Diagnostics.Debug.WriteLine(XMLSave);
End Sub;

After executing the example express report map formatting is loaded to XML format.

See also:

IMap