sophialex 你好
不知你是否安装 Spread for ASP.NET 4.0.3525.2008 ,下载地址: http://www.gcpowertools.com.cn/d ... asp4_net35-3525.zip
我这边使用以上版本验证了以下代码在IE8中可以编辑公式,还是建议你使用 Spread for ASP.NET 4.0.3525.2008 版本 :
- protected void Page_Load(object sender, EventArgs e)
- {
- if (!IsPostBack)
- {
- FpSpread1.ActiveSheetView.Rows[1].Border = new FarPoint.Web.Spread.Border(BorderStyle.Solid, Color.Black, 1);
- FpSpread1.ActiveSheetView.AllowPage = false;
- FpSpread1.ActiveSheetView.RowCount = 10;
- FpSpread1.ActiveSheetView.ColumnCount = 10;
- FpSpread1.ActiveSheetView.Cells[1, 1].Formula = "SUM(C1:C5)";
- FpSpread1.ActiveSheetView.AllowUserFormulas = true;
- }
- }
复制代码 |