IEaxAnalyzeCore.LoadSettingsFromXml

Syntax

LoadSettingsFromXml(Element: IXmlDomElement);

Parameters

Element. Object in the XML format, from which express report parameters are loaded.

Description

The LoadSettingsFromXml method loads express report parameters from the XML document.

Comments

To unload express report parameters to a XML file, use the IEaxAnalyzeCore.SaveSettingsToXml method.

Example

Executing the example requires that the repository contains an express report with the OLAP identifier. The file system must contain the C:\OlapSettings.xml file containing express report parameters in the XML format.

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

Sub UserLoadFromXML;
Var
    mb: Imetabase;
    Eax: IEaxAnalyzer;
    XmlDoc: IXmlDomDocument3;
    el: IXmlDomElement;
Begin
    mb := MetabaseClass.Active;
    // Get XML document
    XmlDoc := New FreeThreadedDOMDocument60.Create;
    XmlDoc.load("C:\OlapSettings.xml");
    el := XmlDoc.selectSingleNode("Root"As IXmlDomElement;
    // Get express report
    Eax := mb.ItemById("OLAP").Edit As IEaxAnalyzer;
    // Load express report settings from XML document
    Eax.LoadSettingsFromXml(el);
    // Save express report 
    (Eax As IMetabaseObject).Save;
End Sub UserLoadFromXML;

Example execution result: express report parameters are loaded from the C:\OlapSettings.xml file.

See also:

IEaxAnalyzeCore