IUiReport.Report

Syntax

Report: IPrxReport;

Description

The Report property determines a regular report implemented by the IPrxReport interface.

Comment

To open access to regular report, set the IUiMetabaseObject.Active property to True.

Example

Executing the example requires a form with the button on it named Button and the UiReport and ReportBox components. The UiReport component is selected as data source for ReportBox.

Add links to the Forms, Metabase, Report system assemblies.

The example is a handler of the OnClick event for the button.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    MB: IMetabase;
Begin
    
// Get repository
    MB := MetabaseClass.Active;
    
// Get regular report
    UiReport1.Report := MB.ItemById("REPORT").Edit As IPrxReport;
    UiReport1.Active := 
True;
End Sub Button1OnClick;

After executing the example, clicking the button sets the regular report with the REPORT identifier as data source for the UiReport component that will be displayed in the ReportBox component.

See also:

IUiReport