Add(Position: Integer; Lenght: Integer): Boolean;
Position. The number of start cell for continuous range.
Lenght. The number of cells in continuous range.
The Add method creates a new continuous range in the table.
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.
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(0) As IPrxTable).TabSheet;
TabPS := Tab.PageSettings;
TabPS.ContinuousColumns.Add(50, 3);
TabPS.ContinuousRows.Add(50, 3);
(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: