IAdhocReport.LoadFromXML

Fore Syntax

LoadFromXML(Src: Variant);

Fore.NET Syntax

None

Parameters

Src. The path and the name of the XML file containing dashboard settings.

Description

The LoadFromXML method loads dashboard settings from the specified XML file.

Comments

The method enables the user to load settings saved as a result of the SaveToXML method work.

Fore Example

Executing the example requires the Report.xml file containing dashboard settings in the root directory of the C disk.

Sub UserProc;
Var
    MB: IMetabase;
    CrInfo: IMetabaseObjectCreateInfo;
    AdhocReport: IAdhocReport;
Begin
    MB := MetabaseClass.Active;
    CrInfo := MB.CreateCreateInfo;
    CrInfo.ClassID := MetabaseObjectClass.KE_ADHOC_REPORT;
    CrInfo.Id := "NewAdhocReport";
    CrInfo.Name := "New dashboard";
    CrInfo.Parent := MB.Root;
    AdhocReport := MB.CreateObject(CrInfo).Edit As IAdhocReport;
    AdhocReport.LoadFromXML("c:\Report.xml");
    (AdhocReport As IMetabaseObject).Save;
End Sub UserProc;

After executing the example a Dashboard new object is created in the root folder of the repository. Dashboard parameters are loaded from the Report.xml file.

See also:

IAdhocReport