IAdhocReport.SaveToFile

Syntax

SaveToFile(FileName: String);

Parameters

FileName. Path and name of the file where dashboard will be saved.

Description

The SaveToFile method saves a dashboard in the specified file of the PPDASH format.

Comments

To load the dashboard from the PPDASH file, use the IAdhocReport.LoadFromFile method.

Example

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:

IAdhocReport