How Convert amount to rupees and paise in words in Devexpress Xtrareport

482 Views Asked by At

I want to convert the summery of devexpress report to words. I found a question 'convert amount to rupees and paise in words format in c#' here convert amount to rupees and paise in words format in c# But i dont know how to use the code for devexpress report to convert the number to word? Please help me how to do.

2

There are 2 best solutions below

1
k0st1x On

if you're using the end-user-designer (not the visual studio), i may suggest to register custom function 'RupeesToWords' for binding expressions. in this new function implemetation you may write your custom code. in the XRLabel's summary expression specify the expression like this

RupeesToWords(sumSum(Value))
3
Brendon On

Assuming you were to display this value in an XRLabel, you could handle the XRLabel's BeforePrint event and set the Label's text to the result of the code you've already found for the conversion process.