Add: IPrxSlice;
The Add method adds a new data slice.
Sub Main;
Var
MB: IMetabase;
MObj: IMetabaseObject;
Report: IPrxReport;
DtSources: IPrxDataSources;
Slices: IPrxSlices;
Slice: IPrxSlice;
Begin
MB := MetabaseClass.Active;
MObj := MB.ItemById("Report").Edit;
Report := MObj As IPrxReport;
DtSources := Report.DataSources;
Slices := DtSources.Item(0).Slices;
Slice := Slices.Add;
MObj.Save;
End Sub Main;
After executing the example a new data slice is created in the first data source of the regular report. The identifier of the regular report - Report.
See also: