SaveSettingsToXml(Element: IXmlDomElement; Options: EaxSaveSettings);
Element. Object, to which express report parameters are saved.
Options. Parameters for saving express report visualizers.
The SaveSettingsToXml method loads express report parameters in the XML format.
To load express report parameters from the XML file, use the IEaxAnalyzeCore.LoadSettingsFromXml method.
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: