IAdhocReport.BulkSettings

Syntax

BulkSettings: IAdhocBulkSettings;

Description

The BulkSettings property returns parameters of batch operations executed by a dashboard.

Comments

For batch export of a dashboard, use the IAdhocReportExporter interface.

Example

Executing the example requires that the repository contains a dashboard with the DASHBOARD_EXPORT identifier.

Add links to the Adhoc, Metabase system assemblies.

Sub UserProc;
Var
    mb: IMetabase;
    Dashboard: IAdhocReport;
    BulkSett: IAdhocBulkSettings;
    Exp: IAdhocReportExporter;
Begin
    mb := MetabaseClass.Active;
    // Get dashboard
    Dashboard := mb.ItemById("DASHBOARD_EXPORT").Bind As IAdhocReport;
    // Get parameters of batch operations execution
    BulkSett := Dashboard.BulkSettings;
    // Create an object to export dashboard
    Exp := New AdhocReportExporter.Create;
    // Set parameters of batch export
    Exp.BulkSettings := BulkSett;
    // Set exported report
    Exp.AdhocReport := BulkSett.Report;
    // Execute export
    Exp.ExportToFile("C:\Dashboard.PDF""PDF");
End Sub UserProc;

After executing the example batch export of the DASHBOARD_EXPORT dashboard in the PDF format is executed. Output files will be named according to the following format: Dashboard_N.PDF, where N is a type of visualizer contained in the dashboard.

See also:

IAdhocReport