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.
See also: