那就用专门的方法转化吧通过单元格的位置,获取这个单元格对应的公式。也可以直接获取一个区域对应的带冒号的公式
- FarPoint.Win.Spread.Model.DefaultSheetDataModel dm = fpSpread1.Sheets[0].Models.Data as FarPoint.Win.Spread.Model.DefaultSheetDataModel;
- FarPoint.CalcEngine.CellExpression re = new FarPoint.CalcEngine.CellExpression(0, 0, true, true);
- var uf = dm.UnparseFormula(0, 0, re);
复制代码- FarPoint.CalcEngine.RangeExpression re = new FarPoint.CalcEngine.RangeExpression(0, 0, 1, 10, true, true);
- var uf1 = dm.UnparseFormula(0, 0, re);
复制代码 |