Show contents 

Report > Report Assembly Interfaces > IPrxSlice > IPrxSlice.Copy

IPrxSlice.Copy

Syntax

Copy(Options: PrxSliceCopyOptions):IPrxSlice;

Parameters

Options. Slice copying parameter.

Description

The Copy method returns an object that contains a copy of the data slice.

Example

Sub UserProc;
Var
    MB: IMetabase;
    MObj: IMetabaseObject;
    Report: IPrxReport;
    DtSources: IPrxDataSources;
    Slices: IPrxSlices;
    Slice, Slice1: IPrxSlice;
Begin
    MB := MetabaseClass.Active;
    MObj := MB.ItemById("REPORT").Edit;
    Report := MObj As IPrxReport;
    DtSources := Report.DataSources;
    Slices := DtSources.Item(0).Slices;
    Slice := Slices.Item(0);
    Slice1 := Slice.Copy(PrxSliceCopyOptions.All);
    MObj.Save;
End Sub UserProc;

After executing the example the Slice1 variable contains a full copy of the first slice of the data source. The identifier of the regular report - Report.

See also:

IPrxSlice