ITabPageContinuousRanges.Add

Fore Syntax

Add(Position: Integer; Lenght: Integer): Boolean;

Fore.NET Syntax

Add(Position: integer; Lenght: integer): boolean;

Parameters

Position. The number of start cell for continuous range.

Lenght. The number of cells in continuous range.

Description

The Add method creates a new continuous range in the table.

Comments

Depending on which continuous ranges collection is used (ranges by columns or ranges by rows), the column index or the row index is defined in the Position parameter.

Fore Example

To execute the example, create a regular report with the Report identifier. The border of report pages contains some data.

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.ContinuousColumns.Add(503);
    TabPS.ContinuousRows.Add(503);
    (Report As IMetabaseObject).Save;
End Sub UserProc;

After executing the example, on exporting or printing of the regular report the data limited with this range is placed on one page.

Fore.NET Example

To execute the example, create a regular report with the Report identifier. The border of report pages contains some data.

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.ContinuousColumns.Add(503);
    TabPS.ContinuousRows.Add(503);
    (Report As IMetabaseObject).Save();
End Sub;

After executing the example, on exporting or printing of the regular report the data limited with this range is placed on one page.

See also:

ITabPageContinuousRanges