回复 1楼noahark的帖子
是 Spread ASP.NET 平台吧?
实现方法如下:
- protected void Page_Load(object sender, EventArgs e)
- {
- if (IsPostBack)
- {
- return;
- }
- this.FpSpread1.Sheets[0].Cells[0, 0].Value = 1;
- this.FpSpread1.Sheets[0].Cells[1, 0].Value = 1;
- this.FpSpread1.Sheets[0].Cells[2, 0].Value = 1;
- this.FpSpread1.Sheets[0].Cells[0, 1].Value = 2;
- this.FpSpread1.Sheets[0].Cells[1, 1].Value = 2;
- this.FpSpread1.Sheets[0].Cells[2, 1].Value = 2;
- this.FpSpread1.Sheets[0].Columns[2].Formula = "A1/B1";
- }
复制代码 |