Currency group size - multiple group sizes

Stimulsoft Reports.NET discussion
Post Reply
JoshS
Posts: 12
Joined: Thu Aug 11, 2022 4:38 am

Currency group size - multiple group sizes

Post by JoshS »

Hi,

Is it possible to have multiple currency group sizes for formatting? For example, en-IN (India) is formatted as 3 digits in the right most group, and 2 digits in all other groups (eg. 12,34,56,789.00)
This is supported in .NET CultureInfo, wondering if it is possible in the report or if it would be possible in future.

Image

Thanks in advance!
Lech Kulikowski
Posts: 6271
Joined: Tue Mar 20, 2018 5:34 am

Re: Currency group size - multiple group sizes

Post by Lech Kulikowski »

Hello,

You can use the Culture property of the report.

Thank you.
Attachments
Screenshot 2023-08-22 004713.png
Screenshot 2023-08-22 004713.png (64.71 KiB) Viewed 2286 times
JoshS
Posts: 12
Joined: Thu Aug 11, 2022 4:38 am

Re: Currency group size - multiple group sizes

Post by JoshS »

Thanks for the tip - would this have any impact on other parts of the report?

Currently we're just setting the currency format specifically for currency fields
Lech Kulikowski
Posts: 6271
Joined: Tue Mar 20, 2018 5:34 am

Re: Currency group size - multiple group sizes

Post by Lech Kulikowski »

Hello,

Yes, that option for all components formats.

Thank you.
JoshS
Posts: 12
Joined: Thu Aug 11, 2022 4:38 am

Re: Currency group size - multiple group sizes

Post by JoshS »

Can you please add support for it in StiCurrencyFormatService too? Currently that will only support a single group size
Lech Kulikowski
Posts: 6271
Joined: Tue Mar 20, 2018 5:34 am

Re: Currency group size - multiple group sizes

Post by Lech Kulikowski »

Hello,

You can use the custom format:
https://learn.microsoft.com/en-us/dotne ... at-strings

Thank you.
Post Reply