IEaxAnalyzerCore.SaveSettingsToXml

Fore Syntax

SaveSettingsToXml(Element: IXmlDomElement; Options: EaxSaveSettings);

Fore.NET Syntax

SaveSettingsToXml(

    Element: Prognoz.Platform.Interop.MsXml2.IXmlDomElement;
    Options: Prognoz.Platform.Interop.Express.EaxSaveSettings);

Parameters

Element. Object, to which express report parameters are saved.

Options. Parameters for saving express report visualizers.

Description

The SaveSettingsToXml method unloads express report parameters in the XML format.

Comments

To load express report parameters from the XML file, use the IEaxAnalyzerCore.LoadSettingsFromXml method.

Fore Example

Executing the example requires that the repository contains an express report with the OLAP identifier.

Add links to the Express, Metabase and Xml system assemblies.

Sub UserSaveToXML;
Var
    mb: Imetabase;
    Eax: IEaxAnalyzer;
    XmlDoc: IXmlDomDocument3;
    el: IXmlDomElement;
Begin
    mb := MetabaseClass.Active;
    // Create an XML document
    XmlDoc := New FreeThreadedDOMDocument60.Create;
    el := XmlDoc.createElement("Root");
    XmlDoc.appendChild(el);
    // Get express report
    Eax := mb.ItemById("OLAP").Bind As IEaxAnalyzer;
    // Load express report settings to XML document
    Eax.SaveSettingsToXml(el, EaxSaveSettings.Grid);
    // Save XML document
    XmlDoc.save("C:\OlapSettings.xml");
End Sub UserSaveToXML;

Example executing result: express report table settings are saved in the XML format to the C:\OlapSettings.xml file.

Fore.NET Example

The requirements and result of the Fore.NET example execution match with those in the Fore example.

Imports Prognoz.Platform.Interop.Express;
Imports Prognoz.Platform.Interop.MsXml2;

Public Shared Sub Main(Params: StartParams);
Var
    mb: Imetabase;
    Eax: IEaxAnalyzer;
    XmlDoc: IXmlDomDocument3;
    el: IXmlDomElement;
Begin
    mb := Params.Metabase;
    // Create an XML document
    XmlDoc := New FreeThreadedDOMDocument60.Create();
    el := XmlDoc.createElement("Root");
    XmlDoc.appendChild(el);
    // Get express report
    Eax := mb.ItemById["OLAP"].Bind() As IEaxAnalyzer;
    // Load express report table settings to XML document
    Eax.SaveSettingsToXml(el, EaxSaveSettings.essGrid);
    // Save XML document   
    XmlDoc.save("C:\OlapSettings.xml");
End Sub;

See also:

IEaxAnalyzeCore