Show contents 

Report > Report Assembly Interfaces > IPrxSlices > IPrxSlices.Add

IPrxSlices.Add

Syntax

Add: IPrxSlice;

Description

The Add method adds a new data slice.

Example

Sub UserProc;
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 UserProc;

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:

IPrxSlices