回复 9楼a1274918722的帖子
a1274918722 你好,
可以尝试把 Sheet 状态保存在 Session 中,参考代码:
- protected void FpSpread1_SaveOrLoadSheetState(object sender, FarPoint.Web.Spread.SheetViewStateEventArgs e)
- {
- if (e.IsSave)
- {
- Session[e.SheetView.SheetName] = e.SheetView.SaveViewState();
- }
- else
- {
- e.SheetView.LoadViewState(Session[e.SheetView.SheetName]);
- }
- e.Handled = true;
- }
复制代码 |