SaveToFile(FileName: String);
FileName. Path and name of the file where dashboard will be saved.
The SaveToFile method saves a dashboard in the specified file of the PPDASH format.
To load the dashboard from the PPDASH file, use the IAdhocReport.LoadFromFile method.
Executing the example requires that the repository contains a dashboard with the ADHOC identifier.
Add links to the Adhoc and Metabase system assemblies.
Sub UserProc;
Var
MB: IMetabase;
AdhocReport: IAdhocReport;
Begin
MB := MetabaseClass.Active;
AdhocReport := MB.ItemById("ADHOC").Bind As IAdhocReport;
AdhocReport.SaveToFile("C:\Report.ppdash");
End Sub UserProc;
After executing the example the report is saved to the Report.ppdash file.
See also: