Number formatting

Stimulsoft Reports.NET discussion
Post Reply
prajan
Posts: 49
Joined: Tue Apr 23, 2013 1:28 pm

Number formatting

Post by prajan »

Hi,
Can you please tell me how we can programatically set the number format to either en-US or en-gb for a text in a report ?

Thanks
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Number formatting

Post by HighAley »

Hello.
prajan wrote:Can you please tell me how we can programatically set the number format to either en-US or en-gb for a text in a report ?
You should set the Text Format property of the Text component.

Thank you.
prajan
Posts: 49
Joined: Tue Apr 23, 2013 1:28 pm

Re: Number formatting

Post by prajan »

Hi,
I used the StiNumberFormatService to set the format of the text.
I am able to display in the American format (123,456,789.00) by setting the group size to 3, but I am not able to display in the British format (12,34,56,789.00), 'cause if I set the group size to 2, it displays as (12,34,56,78.00).
Can you please tell me how to display in the British format?

Thanks
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Number formatting

Post by HighAley »

Hello.
prajan wrote:I used the StiNumberFormatService to set the format of the text.
I am able to display in the American format (123,456,789.00) by setting the group size to 3, but I am not able to display in the British format (12,34,56,789.00), 'cause if I set the group size to 2, it displays as (12,34,56,78.00).
Can you please tell me how to display in the British format?
We know nothing about this British format. Could you send us any additional information about this format. Could you send us any link on wikipedia.org or somewhere else.

Thank you.
prajan
Posts: 49
Joined: Tue Apr 23, 2013 1:28 pm

Re: Number formatting

Post by prajan »

Please see the 'Use of Separators' in the given link.
http://en.wikipedia.org/wiki/Indian_numbering_system

I want to be able to display numbers in the Indian System as well as the Arabic system.
Thanks
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Number formatting

Post by Alex K. »

Hello,

Unfortunately, in current moment, this feature is not supported in our products.

Thank you.
prajan
Posts: 49
Joined: Tue Apr 23, 2013 1:28 pm

Re: Number formatting

Post by prajan »

Hi,
Is there no other way of doing it? Any time frame as to when this feature will be added?

Thanks
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Number formatting

Post by Alex K. »

Hello,

Unfortunately, we do not have plans to develop this feature. Sorry.

Thank you.
prajan
Posts: 49
Joined: Tue Apr 23, 2013 1:28 pm

Re: Number formatting

Post by prajan »

That is very sad to know :-(
Can the format mask of the Custom Format be used for doing this? Any help will be highly appreciated :)

Thanks
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Number formatting

Post by Alex K. »

Hello,

As a way, you can try to realize your own function which will be return the value with the necessary formating.

Thank you.
Post Reply