IEaxAnalyzeCore.SaveSettingsToXml

Syntax

SaveSettingsToXml(Element: IXmlDomElement; Options: EaxSaveSettings);

Parameters

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

Options. Parameters for saving express report visualizers.

Description

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

Comments

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

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.

See also:

IEaxAnalyzeCore