ITabPageContinuousRanges.Add

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.

Example

Executing the example requires to 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.

See also:

ITabPageContinuousRanges