IAdhocReportExporter.ExportObjectAsBitmap

Syntax

ExportObjectAsBitmap: Boolean;

Description

The ExportObjectAsBitmap property determines whether report objects will be exported in PDF as an image or a metafile.

Comments

Available values:

Example

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

Add links to the Adhoc, Metabase system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    Report: IAdhocReport;
    Exporter: IAdhocReportExporter;
Begin
    MB := MetabaseClass.Active;
    // Get dashboard
    Report := MB.ItemById("ADHOC").Bind As IAdhocReport;
    // Create an export object
    Exporter := New AdhocReportExporter.Create;
    Exporter.AdhocReport := Report;
    // Run export
    // Footnote export
    Exporter.ExportFootnotes := True;
    // Objects as images
    Exporter.ExportObjectAsBitmap := True;
    Exporter.ExportToFile("C:\Adhoc(ObjectImage).pdf""pdf");
    // Objects as metafiles
    Exporter.ExportObjectAsBitmap := False;
    Exporter.ExportToFile("C:\Adhoc(ObjectMetafile).pdf""pdf");
End Sub UserProc;

After executing the example the contents of the dashboard will be exported to two PDF files. In one of them, report objects are shown as images, in another - as metafiles. Footnotes are also exported.

See also:

IAdhocReportExporter