AddSheets(Value: IEaxSheets);
AddSheets(Value: Prognoz.Platform.Interop.Express.IEaxSheets);
Value. Collection of sheets that must be added to the current collection.
The AddSheets method copies selected sheet collection to the current collection.
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.
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.
Executing the example requires two express reports with the EXPRESS_REPORT and EXPRESS_REPORT_2 identifiers. Selected procedure is an entry point for the .NET assembly.
Imports Prognoz.Platform.Interop.Express;
Imports Prognoz.Platform.Interop.Metabase;
Public Shared Sub Main(Params: StartParams);
Var
MB: IMetabase;
Eax1, Eax2: IEaxAnalyzer;
Begin
MB := Params.Metabase;
Eax1 := MB.ItemById["EXPRESS_REPORT"].Edit() As IEaxAnalyzer;
Eax2 := MB.ItemById["EXPRESS_REPORT_2"].Bind() As IEaxAnalyzer;
//Creating sheets based on current list gallery
Eax1.Sheets.AddSheets(Eax2.Sheets);
(Eax1 As IMetabaseObject).Save();
End Sub;
On executing the example the EXPRESS_REPORT_2 report's sheets are copied to the EXPRESS_REPORT express report.
See also: