Report: IPrxReport;
The Report property determines a regular report implemented by the IPrxReport interface.
To open access to regular report, set the IUiMetabaseObject.Active property to True.
Add links to the Forms, KeFore, 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;
Imports Prognoz.Platform.Interop.Forms;
Imports Prognoz.Platform.Interop.KeFore;
Imports Prognoz.Platform.Interop.Metabase;
Imports Prognoz.Platform.Interop.Report;
…
Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
MB: IMetabase;
Begin
// Get repository
MB := Self.Metabase;
// Get regular report
UiReportNet1.ReportUi.Report := MB.ItemById["REPORT"].Edit() As IPrxReport;
UiReportNet1.Active := True;
End Sub;
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: