ExportChartsAsImages: Boolean;
ExportChartsAsImages: Boolean;
The ExportChartsAsImages property determines whether charts are to be exported as images when exporting a report to XLS files (*.xls).
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.
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.
The requirements and result of the Fore.NET example execution match with those in the Fore example.
Imports Prognoz.Platform.Interop.Metabase;
Imports Prognoz.Platform.Interop.Report;
Public Shared Sub Main(Params: StartParams);
Var
MB: IMetabase;
Report: IPrxReport;
ReportExporter: IPrxReportExporter = New PrxReportExporterClass();
Begin
MB := Params.Metabase;
Report := MB.ItemById["REGULAR_REPORT"].Bind() As IPrxReport;
ReportExporter.Report := Report;
ReportExporter.ExportFootnotes := True;
ReportExporter.ExportChartsAsImages := True;
ReportExporter.ExportToFile("C:\Report.XLS", "XLS");
End Sub;
See also: