ExportFlowDocumentsAsImages: Boolean;
The ExportFlowDocumentsAsImages property determines whether a text block can be exported as an image in the XLSX format.
Available values:
True. The text block is exported as an image.
False. Default value. The text block is exported as a text.
Executing the example requires a regular report with the REGULAR_REPORT identifier that contains a text block.
Add links to the Metabase, Report system assemblies.
Sub UserProc;
Var
MB: IMetabase;
Report: IPrxReport;
Exp: IPrxReportExporter;
Begin
// Get current repository
MB := MetabaseClass.Active;
// Get regular report
Report := MB.ItemById("REGULAR_REPORT").Bind As IPrxReport;
// Determine a report to be exported
Exp := New PrxReportExporter.Create;
Exp.Report := Report;
// Determine whether text block can be exported as an image
Exp.ExportFlowDocumentsAsImages := True;
// Export report to file
Exp.ExportToFile("C:\Report.xlsx", "xlsx");
End Sub UserProc;
After executing the example the regular report is exported to the Report.xlsx file, the output file will contain an image.
See also: