Scrolls through the sheet in the component to the specified page.
Syntax
Visual Basic (Declaration) | |
---|
Public Sub GotoPage( _
ByVal pageIndex As Integer _
) |
Visual Basic (Usage) | Copy Code |
---|
Dim instance As FpSpread
Dim pageIndex As Integer
instance.GotoPage(pageIndex) |
Parameters
- pageIndex
- Index of specified page
Remarks
Example
This example creates a spreadsheet with five columns and 150 rows, a PageSize of 30 rows and a PageCount of 3. The Pager is positioned on the top of the spreadsheet, and the user would be taken to the last page of the sheet.
C# | Copy Code |
---|
FpSpread1.Columns.Count=5;
FpSpread1.Rows.Count=150;
FpSpread1.ActiveSheetView.PageSize=30;
FpSpread1.Pager.Position=FarPoint.Web.Spread.PagerPosition.Top;
FpSpread1.Pager.PageCount=3;
FpSpread1.GotoPage(4); |
Visual Basic | Copy Code |
---|
FpSpread1.Columns.Count=5
FpSpread1.Rows.Count=150
FpSpread1.ActiveSheetView.PageSize=30
FpSpread1.Pager.Position=FarPoint.Web.Spread.PagerPosition.Top
FpSpread1.Pager.PageCount=3
FpSpread1.GotoPage(4) |
Requirements
Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6
See Also