Add(Position: Integer; Lenght: Integer): Boolean;
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.
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(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.
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[0] As IPrxTable).TabSheet;
TabPS := Tab.PageSettings;
TabPS.ContinuousColumns.Add(50, 3);
TabPS.ContinuousRows.Add(50, 3);
(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: