回复 6楼SnailRun的帖子
请通过以下代码解决这个问题:
- this.FpSpread1.OpenExcel(this.Server.MapPath("111.xlsx"));
- this.FpSpread1.ActiveSheetView.AllowPage = false;
- for (int c = 0; c < FpSpread1.ActiveSheetView.Charts.Count; c++)
- {
- if (FpSpread1.ActiveSheetView.Charts[c].PageIndex == 2)
- {
- FpSpread1.ActiveSheetView.Charts[c].PageIndex = 0;
- FpSpread1.ActiveSheetView.Charts[c].Top = new Unit(FpSpread1.ActiveSheetView.Charts[c].Top.Value + 10 * 21); // 10 is PageSize, 21 is row height
- }
- }
复制代码
效果图:
|