Add(ItemBreak: Integer);
Add(ItemBreak: integer);
ItemBreak. Break index in table.
The Add method adds a new break in the table.
After the break is placed after the column and before the row, by which it is created, a dash-dotted line is drawn.
To execute the example, create a regular report with the Report identifier.
Sub UserProc;
Var
MB: IMetaBase;
Report: IPrxReport;
Tab: ITabSheet;
TabPS: ITabPageSettings;
Begin
MB := MetaBaseClass.Active;
Report := MB.ItemById("Report").Edit As IPrxReport;
Tab := (Report.Sheets.Item(0) As IPrxTable).TabSheet;
TabPS := Tab.PageSettings;
TabPS.ColumnsBreaks.Add(3);
TabPS.RowsBreaks.Add(5);
(Report As IMetabaseObject).Save;
End Sub UserProc;
After executing the example the first page of the report contains breaks by columns and rows.
To execute the example, create a regular report with the Report identifier.
Imports Prognoz.Platform.Interop.Metabase;
Imports Prognoz.Platform.Interop.Report;
Imports Prognoz.Platform.Interop.Tab;
Public Sub UserProc(Params: StartParams);
Var
MB: IMetaBase;
Report: IPrxReport;
Tab: ITabSheet;
TabPS: ITabPageSettings;
Begin
MB := Params.Metabase;
Report := MB.ItemById["Report"].Edit() As IPrxReport;
Tab := (Report.Sheets.Item[0] As IPrxTable).TabSheet;
TabPS := Tab.PageSettings;
TabPS.ColumnsBreaks.Add(3);
TabPS.RowsBreaks.Add(5);
(Report As IMetabaseObject).Save();
End Sub;
After executing the example the first page of the report contains breaks by columns and rows.
See also: