划分 2 ReportItems

Dividing 2 ReportItems

我尝试用以下表达式划分 2 个 ReportItems FreeNumberField_14 和 FreeNumberField_13:

=(ReportItems!FreeNumberField_14.Value / ReportItems!FreeNumberField_13.Value)

当运行报告时我收到以下错误:

The Value expression for the textrun ‘Textbox82.Paragraphs[0].TextRuns[0]’ contains an error: Input string was not in a correct format. (rsRuntimeErrorInExpression)

划分 2 个 ReportItem 的正确方法是什么?

尝试将其转换为 Int、Decimal 或 Number,然后再像这样除法

=(CDec(ReportItems!FreeNumberField_14.Value) / CInt(ReportItems!FreeNumberField_13.Value))
=Cdec(ReportItems!freefield1.Value)/Cdec(ReportItems!freefiled2.Value)