IPrxSheet.CopyFrom

Syntax

CopyFrom(Source: IPrxSheet);

Parameters

Source - data source sheet.

Description

The CopyFrom method copies data from the sheet passed by the Source parameter.

Example

Sub Main;

Var

MB: IMetabase;

MObj: IMetabaseObject;

Report: IPrxReport;

Sheet: IPrxSheet;

Begin

MB:=MetabaseClass.Active;

MObj:=MB.ItemById("Report").Edit;

Report:=MObj As IPrxReport;

Sheet:=Report.Sheets.Add("New_Sheet");

Sheet.CopyFrom(Report.Sheets.Item(0));

MObj.Save;

End Sub Main;

After executing the example a new sheet is created in the regular report with the Report identifier and the data of the first report sheet is copied to this new sheet. The identifier of the regular report - Report.

See also:

IPrxSheet