SaveToXml(SaveMethod: MapXmlSaveMethod): String;
SaveToXml(SaveMethod: Prognoz.Platform.Interop.Map.MapXmlSaveMethod) : System.String;
SaveMethod. The method used for loading.
The SaveToXml method loads a map to XML format.
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.
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: