Currency formatting

Stimulsoft Reports.Flex discussion
Locked
User avatar
Chipo
Posts: 44
Joined: Thu Sep 13, 2012 4:09 am
Location: Sydney, Australia

Currency formatting

Post by Chipo »

Hi,

I have several tenants with different currency preferences.
How I can set up some preferences for report viewer on runtime to use them for currency formatting without amending the report "text format" properties?

Have a great day.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Currency formatting

Post by HighAley »

Hello.

You can create a variable where you can set the currency symbol and use one of next expression:

Code: Select all

{DataSource.CurrencyColumn.ToString("N2") + " " + VarCurrency}
{VarCurrency + DataSource.CurrencyColumn.ToString("N2")}
The Text format property should be set to General.

Thank you.
User avatar
Chipo
Posts: 44
Joined: Thu Sep 13, 2012 4:09 am
Location: Sydney, Australia

Re: Currency formatting

Post by Chipo »

Hi,

Can I use "Use Local Settings" by chance. I know current user preferences at runtime and can (possibly) "fix" local settings for report.
Is it possible?

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

Re: Currency formatting

Post by HighAley »

Hello.
Chipo wrote:Can I use "Use Local Settings" by chance. I know current user preferences at runtime and can (possibly) "fix" local settings for report.
Is it possible?
Unfortunately, this Settings doesn't work in the Flash Designer, because Flash player have no access to the local settings.

Thank you.
Locked