可以添加 数字 分页- // Set the number of sheets.
- FpSpread1.Sheets.Count = 5;
- // Set the number of rows on the first sheet
- FpSpread1.Sheets[0].RowCount = 136;// Set the number of rows per page in this sheet.
- FpSpread1.Sheets[0].PageSize = 13;
-
- // Display the pager only at the top of the component.
- FpSpread1.Pager.Position = FarPoint.Web.Spread.PagerPosition.Top;
- // Display both numbers and arrows by setting mode.
- // Set the mode after the position, otherwise an error.
- FpSpread1.Pager.Mode = FarPoint.Web.Spread.PagerMode.Both;
- // Format the text in the pager at the top.
- FpSpread1.Pager.Align = HorizontalAlign.Right;
- FpSpread1.Pager.Font.Bold = true;
- FpSpread1.Pager.Font.Name = "Trebuchet MS";
- FpSpread1.Pager.ForeColor = Color.Brown;
- FpSpread1.Pager.BackColor = Color.Orange;
- // Display at most four page numbers at a time.
- FpSpread1.Pager.PageCount = 4;
复制代码 |