问题描述
我想将 devexpress 报告的摘要转换为文字。我在这里发现了一个问题'convert amount to rupees and paise in words format in c#' here convert amount to rupees and paise in words format in c# 但我不知道如何使用 devexpress 报告的代码将数字转换为单词?请帮我怎么做。
解决方法
如果您使用的是 end-user-designer(不是 Visual Studio),我可能会建议为绑定表达式注册 custom function 'RupeesToWords'。 在这个新函数实现中,您可以编写自定义代码。 在 XRLabel 的汇总表达式中指定这样的表达式
RupeesToWords(sumSum(Value))
,
假设您要在 XRLabel 中显示此值,您可以处理 XRLabel 的 BeforePrint event 并将标签的文本设置为您已经为转换过程找到的代码的结果。