Page 1 of 2

Number to Word

Posted: Wed Feb 18, 2009 7:35 am
by Saro
Hi,

I have a situation where in I have to convert the number into words.

For ex:
1364 should be converted to " one three six four "

Is there a way to do this?

Thank you,
Saro

Number to Word

Posted: Wed Feb 18, 2009 7:42 am
by Edward
Hi Saro,

Please use ToWords() and ToCurrencyWords() functions, which are available in the Dictionary Tab in 'Strings' group of functions inside of the designer.

Thank you.

Number to Word

Posted: Thu Feb 19, 2009 1:42 am
by Saro
Hi Edward,

I am using version 2006.4 and I can not find 'Strings' group in Dictionary Tab. I guess this option is not available in this version, or do I need to workaround to get this group added to the Dictionary?

Thank You.

Number to Word

Posted: Thu Feb 19, 2009 1:48 am
by Edward
Hi Saro,

Please use the following expression in the 2006.4 version:

Code: Select all

{Func.En.CurrToStr(myCurrencyvalue)}
Thank you.

Number to Word

Posted: Mon Feb 15, 2010 3:26 am
by mihiri
I am using SS 2009.1.323
I tried using ToWords and the method stated above.

my parameter is a Decimal value, so I thought ToWords (decimal value) would work.

But on both ocations(ToWords and CurrToStr) I get an error

error CS1502: The best overloaded method match for 'Stimulsoft.Report.Func.En.CurrToStr(long)' has some invalid arguments
error CS1503: Argument '1': cannot convert from 'decimal?' to 'long'

please help
Thanks in Advance


Number to Word

Posted: Mon Feb 15, 2010 9:07 am
by Jan
Hello,

Try following code:

Code: Select all

{ToWords(value.GetValueOrDefault())}

Thank you.

Number to Word

Posted: Mon Feb 15, 2010 9:31 am
by mihiri
Thanks
But I when I use ToWords(vExcTotal.GetValueOrDefault())} I get the result, it seems to be in a language other than English.

Could you please explain what to do for that.

Regards

Number to Word

Posted: Mon Feb 15, 2010 6:23 pm
by Edward
Hi

Could you please send a mrt file with that expresion and result of rendering to support[at]stimulsoft.com for analysis, please?

Thank you.

Number to Word

Posted: Mon Feb 15, 2010 11:48 pm
by mihiri
Hi Edward,

I just sent it.

Thanks

Number to Word

Posted: Tue Feb 16, 2010 6:12 pm
by Edward
Hi

We have reviewed your report and will be in touch with you soon.

Thank you.