StartPageNumber: Integer;
StartPageNumber: integer;
The StartPageNumber property determines the number, from which sheet pages numbering starts.
The following example assumes that there is the Report object with the IPrxReport type.
Add a link to the Report system assembly.
Sub UserProc;
Var
Report: IPrxReport;
Sheet: IPrxSheet;
PageSet: IPrxPageSettings;
Begin
Sheet := Report.Sheets.Item(0);
PageSet := Sheet.PageSettings;
PageSet.UseSheetPageCount := True;
PageSet.StartPageNumber := 3;
End Sub UserProc;
After executing the example the number is set, from which page numbering starts.
The requirements and result of the Fore.NET example execution match with those in the Fore example.
Imports Prognoz.Platform.Interop.Report;
…
Public Shared Sub Main(Params: StartParams);
Var
Report: IPrxReport;
Sheet: IPrxSheet;
PageSet: IPrxPageSettings;
Begin
Sheet := Report.Sheets.Item[0];
PageSet := Sheet.PageSettings;
PageSet.UseSheetPageCount := True;
PageSet.StartPageNumber := 3;
End Sub;
See also: