Reports Feature Question (Convert Amount to Words)

StatusIDPriorityType
Closed25191TrivialFeature
ProfileReply
doorscomputersClient

My question is about the subject title. How do I Convert Amount Figure into Words like
1,600.75 to One Thousand Six Hundred Dollars And 75/100 Only? Thanks very much!

Replies

UserDescriptionPosted On
Sasha (Xafari Support)Client

Hello,

Unfortunately our Xafari Framework has no function and editors that convert numbers into words.
But you can use its function like Convert Number to Words C# Console Application, converting numbers in to words C# and apply it to the Report.

We hope you find this information helpful.
Feel free to contact us if you experience any further difficulties.

Best regards,
Sasha.

doorscomputers

Hi Sasha!
Thank you so much for the proposed solution. I am having trouble using the Function. The code below looks ok if the value of Double is literal or hard
coded. The code below is working fine if I just put a literal double value

Double n = 900.75;
label7.Text = NumWordsWrapper(n);

But on the report, the double Value should come from the data on the report by using the GetCurrentColumnValue
Double n = GetCurrentColumnValue("Amount");

The error says "cannot implictly convert "type" to double, an explicit conversion exist"

Hope you can help me on this. Thanks once again!

doorscomputers

I am able to figure out using C# way. Thanks once again for the willingness to help your subscribers.

× This ticket is closed.

Write US