Report: IPrxReport;
The Report property determines a regular report, with which the component works.
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(Null) As 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: