IPrxReportExporter.Report

Syntax

Report: IPrxReport;

Description

The Report property determines a regular report to be exported.

Example

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

Add links to the Metabase, Report system assemblies.

Sub UserProc;
Var
    Mb: IMetabase;
    Report: IPrxReport;
    Export: IPrxReportExporter;
Begin
    Mb := MetabaseClass.Active;
    
// Exported regular report
    Report := Mb.ItemById("REPORT").Bind As IPrxReport;
    
// Export
    Export := New PrxReportExporter.Create;
    
If Export.IsExportToPdfAvailable Then
        Export.Report := Report;
        Export.ExportToFile(
"D:\Report.pdf""pdf");
    
End If;
End Sub UserProc;

After executing the example it is checked if export to PDF is available. If export is available, the specified report is exported to the specified file in PDF.

See also:

IPrxReportExporter