如何为DevExpress XtraReports计算字段创建自定义函数

时间:2011-05-03 07:59:24

标签: asp.net devexpress xtrareport calculated-field custom-formatting

我知道如何在DecExpress XtraReports中为报表创建自定义字段。 但我需要在计算字段的可用函数列表中声明自定义函数。我不知道如何解决这个问题。

source type : Date
result : Date String In other Calendar Formats

source type : TinyInt (Enumeration)
result : Custom Enumeration Value Name

1 个答案:

答案 0 :(得分:1)

根据Q232469S132091,不使用Scripts就不支持。但是,根据Implementing Custom Functions表达编辑器确实允许自定义函数,我会查看此示例How to: Implement a Custom Criteria Language Operator并查看它是否符合您的需要。

否则建议添加一个计算字段然后在您的脚本中覆盖该计算字段的返回值,请参阅Calculated Fields

希望这有帮助