IPrxReportExporter.ExportChartsAsImages

Syntax

ExportChartsAsImages: Boolean;

Description

The ExportChartsAsImages property determines whether charts should be exported as images when exporting a report to XLS (*.xls).

Comments

If the property is set to True, the charts are exported as images, if the property is set to False, they are not.

The default property value is False.

Example

Executing the example requires that the repository contains a regular report with the REGULAR_REPORT identifier.

Sub UserProc;
Var
    MB: IMetabase;
    Report: IPrxReport;
    ReportExporter: IPrxReportExporter;
Begin
    MB := MetabaseClass.Active;
    Report := MB.ItemById("REGULAR_REPORT").Bind As IPrxReport;
    ReportExporter := New PrxReportExporter.Create;
    ReportExporter.Report := Report;
    ReportExporter.ExportFootnotes := True;
    ReportExporter.ExportChartsAsImages := True;
    ReportExporter.ExportToFile("C:\Report.XLS""XLS");
End Sub UserProc;

On executing the example regular report is exported to the specified XLS file. Report charts will be exported as images, footnotes will be exported in the same way.

See also:

IPrxReportExporter