如何在 Devexpress Xtrareport 中将金额转换为卢比和派斯

问题描述

我想将 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 并将标签的文本设置为您已经为转换过程找到的代码的结果。

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...