回复 1楼婧友的帖子
婧友 你好,Copy 方法如下:
- this.FpSpread1.Sheets[0].Cells[0, 0].Text = "测试复制 Sheet";
- this.FpSpread1.Sheets.Count = 2;
- object test = this.FpSpread1.Sheets[0].SaveViewState();
- this.FpSpread1.Sheets[1].LoadViewState(test);
- this.FpSpread1.Sheets[1].SheetName = "Sheet 2";
复制代码 |