ToCurrencyWordsEs does not work

Stimulsoft Reports.JAVA discussion
Post Reply
arturo.rodriguez
Posts: 4
Joined: Thu Apr 30, 2020 1:39 am

ToCurrencyWordsEs does not work

Post by arturo.rodriguez »

Hello

I'm using this example code:

Code: Select all

{string.Format("{0} pesos ({1}/100) MN", ToWordsEs((int)3091.50, false), (int)(3091.50 * 100)%100)}
From this post:
viewtopic.php?f=8&t=4105&p=17826&hilit= ... sEs#p17826

But i cant get work with an XML datasource...

I have tried this way:

Code: Select all

{string.Format("{0} pesos ({1}/100) MN", ToWordsEs((int)cfdi_Comprobante._Total, false), (int)(cfdi_Comprobante._Total * 100)%100)}
And this way:

Code: Select all

{string.Format("{0} pesos ({1}/100) MN", ToWordsEs((int){cfdi_Comprobante._Total}, false), (int)({cfdi_Comprobante._Total} * 100)%100)}
How can i get work ToCurrencyWordEs with an XML datasource?

Im attaching a couple of images...

Thank you
Attachments
This is the error i get...
This is the error i get...
stim_2.png (15.32 KiB) Viewed 2745 times
This is how im using it...
This is how im using it...
stim_1.png (121.89 KiB) Viewed 2745 times
arturo.rodriguez
Posts: 4
Joined: Thu Apr 30, 2020 1:39 am

Re: ToCurrencyWordsEs does not work

Post by arturo.rodriguez »

I hope this can help
The attachment stim_3.png is no longer available
Thats how i am using Comprobante._Total (those are some tests)
Thats how i am using Comprobante._Total (those are some tests)
stim_3.png (66.51 KiB) Viewed 2738 times
arturo.rodriguez
Posts: 4
Joined: Thu Apr 30, 2020 1:39 am

Re: ToCurrencyWordsEs does not work

Post by arturo.rodriguez »

This is the result
This is the result
stim_4.png (23.34 KiB) Viewed 2735 times
Lech Kulikowski
Posts: 6198
Joined: Tue Mar 20, 2018 5:34 am

Re: ToCurrencyWordsEs does not work

Post by Lech Kulikowski »

Hello,

Please send us a sample report with test data that reproduces the issue for analysis.

Thank you.
Post Reply