IWebReportBox.Report

Syntax

Report: IPrxReport;

Description

The Report property determines a regular report, with which the component works.

Example

Executing the example requires that the repository contains a regular report with the REPORT identifier. There should also be a web form and the ReportBox component named ReportBox1 on the form. The specified procedure is set as a handler of the OnShow event for the web form.

Add links to the Metabase, Report and Tab system assemblies.

Sub TESTWebFormOnShow;
Var
    MB: IMetabase;
    Rep: IPrxReport;
Begin
    MB := MetabaseClass.Active;
    Rep := MB.ItemById("REPORT").Open(NullAs IPrxReport;
    ReportBox1.Report := Rep;
End Sub TESTWebFormOnShow;

When the web form is started, the specified regular report is connected to the ReportBox1 component.

See also:

IWebReportBox