Inline formatting of currency in expression of text box

Stimulsoft Reports.PHP discussion
alex.coles
Posts: 14
Joined: Mon Feb 03, 2020 2:19 pm

Re: Inline formatting of currency in expression of text box

Post by alex.coles »

I am using the following as an expression:

Code: Select all

Was: {Format("{0:C}", data_items.price)}
but it comes out as

Code: Select all

Was: $2.49
on the report.

I have other fields that are numeric and set to type 'Currency' with the 'Use Local' property set to true and they show '£' correctly (without the Local property they revert to '$' so suspect this is not being used in the inline conversion).

Stimulsoft.Reports.JS
Version: 2019.4.2
Build date: 2019.11.13
Stimulsoft.Reports.JS - Version: 2019.4.2 - Build date: 2019.11.13
Lech Kulikowski
Posts: 6163
Joined: Tue Mar 20, 2018 5:34 am

Re: Inline formatting of currency in expression of text box

Post by Lech Kulikowski »

Hello,

You can set the Culture property of the report.

Thank you.
Post Reply