IEaxSheets.AddSheets

Syntax

AddSheets(Value: IEaxSheets);

Parameters

Value. Collection of sheets that must be added to the current collection.

Description

The AddSheets method copies selected sheet collection to the current collection.

Comments

The child objects, that are the copies of express reports, on which the Value collection sheets are based, are added on executing the AddSheets method.

Example

Executing the example requires two express reports with the EXPRESS_REPORT and EXPRESS_REPORT_2 identifiers.

Sub UserProc;
Var
    MB: IMetabase;
    Eax1, Eax2: IEaxAnalyzer;
Begin
    MB := MetabaseClass.Active;
    Eax1 := MB.ItemById("EXPRESS_REPORT").Edit As IEaxAnalyzer;
    Eax2 := MB.ItemById("EXPRESS_REPORT_2").Bind As IEaxAnalyzer;
    //Creating sheets based on current list collection
    Eax1.Sheets.AddSheets(Eax2.Sheets);
    (Eax1 As IMetabaseObject).Save;
End Sub UserProc;

On executing the example the EXPRESS_REPORT_2 report's sheets are copied to the EXPRESS_REPORT express report.

See also:

IEaxSheets