SaveToXML(Destination: Variant);
None;
Destination. The path and the name of the XML file, to which dashboard settings are saved.
The SaveToXML method saves dashboard settings to the specified XML file.
The saved settings can be later loaded using the LoadFromXML method.
Executing the example requires that the repository contains a dashboard with the AdhocReport identifier.
Sub UserProc;
Var
MB: IMetabase;
AdhocDS: IAdhocDataSources;
Begin
MB := MetabaseClass.Active;
AdhocDS := MB.ItemById("AdhocReport").Bind As IAdhocDataSources;
AdhocDS.SaveToXML("c:\Report.xml");
End Sub UserProc;
After executing the example dashboard parameters are saved to the specified file.
See also: