回复 1楼mm640803的帖子
通过附件并没有重现您的问题,关键代码如下:
- protected void Page_Load(object sender, EventArgs e)
- {
- if (IsPostBack)
- {
- return;
- }
- this.FpSpread1.Sheets.Count = 3;
- this.FpSpread1.Sheets[0].Cells[0, 0].Value = 2;
- this.FpSpread1.Sheets[1].Cells[0, 0].Value = 4;
- }
- protected void Button1_Click(object sender, EventArgs e)
- {
- this.FpSpread1.Sheets[2].Cells[0, 0].Formula = "sheet1!A1+sheet2!A1";
- this.FpSpread1.ClientAutoCalculation = false;
- this.FpSpread1.ActiveSheetViewIndex = 2;
- }
复制代码
VS2013 + C# + .NET4.0 + Spread 8.1:
17222.zip
(25 KB, 下载次数: 288)
|