从CR Viewer获取公式的值 [英] Get the Value of Formula from CR Viewer
问题描述
您好,
如何在我的C#应用程序中获取公式的值。
获取公式的文本而不是值。
我在Crystal Report中有一个公式。 Sum({AuditReport_csv.Active})
我使用以下代码获取的值公式。
I am using the following code to get the value of the formula.
FormulaFieldDefinitions formulaDefenitions = Rpt.DataDefinition.FormulaFields;
FormulaFieldDefinitions formulaDefenitions = Rpt.DataDefinition.FormulaFields;
FormulaFieldDefinition frDef = formulaDefenitions [0];
FormulaFieldDefinition frDef = formulaDefenitions[0];
string valDef = frDef.Text;
string valDef = frDef.Text;
问题我正在获取公式的文字( Sum({AuditReport_csv.Active}))而不是价值。
The Problem is am getting the Text of the Formula (Sum ({AuditReport_csv.Active})) and not the value.
我应该怎样做以获取值而不是C#中的文本。
推荐答案
这篇关于从CR Viewer获取公式的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!