Custom formatting

Stimulsoft Reports.PHP discussion
Post Reply
tony.tomov
Posts: 72
Joined: Mon Jun 07, 2010 2:39 am

Custom formatting

Post by tony.tomov »

Hello,

I try to format a numeric value so that it shows at end my national currency.
Trying to use the Currency formatter does not work for me, since my currency symbol is not in the list.
I then go to format it with custom formatter, but without success.
I try to use one of the predefined formatters like $0.00, but this seems not to work.

Please advice how to use it with numbers.
It is funny, but it work with dates (other types not tested)

Another recommendation - the currency formatter is ok, but not all symbols are displayed at end of the number.
Please add a possibility to put the symbol before the number too or advise how to use it with custom one

Kind Regards
Tony
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Custom formatting

Post by Vladimir »

Hello,

We have added this feature. Update will be available in prerelease build on February 1.

Thank you.
tony.tomov
Posts: 72
Joined: Mon Jun 07, 2010 2:39 am

Custom formatting

Post by tony.tomov »

Hello,
I can not make this to work (using the version from 01 Feb)

I want to format the number by example 12.34 to 12.34лв.
or
12.34 to $12.34

How can I do this?
Thank you

Kind Regards
Tony
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Custom formatting

Post by Vladimir »

Hello, Tony

To do this you need to specify the currency format of the text as shown on the picture:

Thank you.
Attachments
813.img.png
813.img.png (63.82 KiB) Viewed 6212 times
tony.tomov
Posts: 72
Joined: Mon Jun 07, 2010 2:39 am

Custom formatting

Post by tony.tomov »

Hello Vladimir,

Thank you for the quick response.
This work fine.

What about the second case 12099.34 => $ 12,099.34

Actually does the custom formatter "Custom" work with numbers and if yes how?

Thank you
Tony
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Custom formatting

Post by Vladimir »

Hello, Tony
What about the second case 12099.34 => $ 12,099.34
You can set this format, changing the other parameters. Please see attached images.
Actually does the custom formatter "Custom" work with numbers and if yes how?
Unfortunately, Custom Format is currently not fully implemented and works only with the date and time.


Thank you.
Attachments
817.img2.png
817.img2.png (21.8 KiB) Viewed 6198 times
816.img1.png
816.img1.png (68.21 KiB) Viewed 6199 times
thiagorente
Posts: 8
Joined: Thu Feb 24, 2011 2:46 pm
Location: Santos

Custom formatting

Post by thiagorente »

And to format labels on Charts?
There's a way to change the Currency Format of the System?
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Custom formatting

Post by Vladimir »

Hello,
thiagorente wrote:And to format labels on Charts?
In the latest prerelease builds, you can specify any formatting for labels of Charts, for example N2.
thiagorente wrote:There's a way to change the Currency Format of the System?
You can specify any currency formatting, as shown above.

Thank you.
Post Reply