RowSpan: Integer;
The RowSpan property merges N cells located in the same column where N is the value of this property.
Sub Main;
Var
MB: IMetabase;
MObj : IMetabaseObject;
Report : IPrxReport;
TabIs : IPrxTableIslands;
TI : IPrxTableIsland;
Layout : IPrxTableIslandLayout;
Row : IPrxTableIslandLayoutRow;
Cell : IPrxTableIslandLayoutCell;
Begin
MB := MetabaseClass.Active;
MObj := MB.ItemById("Report").Edit;
Report := MObj As IPrxReport;
TabIs := Report.TableIslands;
TI := TabIs.Item(0);
TI := TI.Edit;
Layout := TI.Layout;
Row := Layout.Rows(0);
Cell := Row.Cells(1);
Cell.RowSpan := 2;
TI.Save;
MObj.Save;
End Sub Main;
After executing the example the selected number of the layout cells located in the same column are merged. Report - identifier of the regular report that contains a relational data area, which layout structure consists of two rows.
See also: