Report: IPrxReport;
Report: Prognoz.Platform.Interop.Report.IPrxReport;
The Report property returns a parent object.
Executing the example requires a regular report with the Report identifier, also add links to the Metabase and Report system assemblies.
Sub Macro;
Var
MB: IMetabase;
MObj: IMetabaseObject;
Report: IPrxReport;
Slice: IPrxSlice;
Begin
MB := MetabaseClass.Active;
MObj := MB.ItemById("Report").Edit;
Report := MObj As IPrxReport;
Slice:= Report.DataSources.Item(0).Slices.Item(0);
debug.WriteLine(Slice.Report.Name);
End Sub Macro;
After executing the example the console window displays the name of the regular report.
Executing the example requires a regular report with the Report identifier, also add links to the Report and ForeSystem system assemblies.
Imports Prognoz.Platform.Interop.Metabase;
Imports Prognoz.Platform.Interop.Report;
Imports Prognoz.Platform.Interop.ForeSystem;
...
Public Shared Sub Macro(Params: StartParams);
Var
MB: IMetabase;
MObj: IMetabaseObject;
Report: IPrxReport;
Slice: IPrxSlice;
Begin
MB := Params.Metabase;
MObj := MB.ItemById["Report"].Edit();
Report := MObj As IPrxReport;
Slice:= Report.DataSources.Item[0].Slices.Item[0];
System.Diagnostics.Debug.WriteLine(Slice.Report.Name);
End Sub;
After executing the example the console window displays the name of the regular report.
See also: