IEaxAnalyzer.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 of saving express report visualizers.

Description

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

Comments

Use the IEaxAnalyzer.LoadSettingsFromXml method to load express report parameters from XML.

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:

IEaxAnalyzer