rt,
在spread 中设置公式时,内容中的单元格设置单元格公式如下
this.spdDeptInfo_Sheet1.Cells.Get(0, 2).Formula = "SUM(R[1]C:R[1]C)";
表现正常,但是应用到header中单元格,会发生异常:
this.spdDeptInfo_Sheet1.ColumnHeader.Cells.Get(0, 2).Formula = "SUM(R[1]C:R[1]C)";Exception    "Invalid token was encountered.\nError offset: 4"或者
this.spdDeptInfo_Sheet1.ColumnHeader.Cells.Get(0, 2).Formula = "SUM(C1:C1)";
没反应
标题中如何设置公式呢?