ITabPageBreaks.Add

Fore Syntax

Add(ItemBreak: Integer);

Fore.NET Syntax

Add(ItemBreak: integer);

Parameters

ItemBreak. Break index in table.

Description

The Add method adds a new break in the table.

Comments

After the break is placed after the column and before the row, by which it is created, a dash-dotted line is drawn.

Fore Example

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(0As 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.

Fore.NET Example

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[0As 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:

ITabPageBreaks