Page 1 of 2

change the currency format

Posted: Sun Mar 29, 2015 11:27 pm
by waleedhm
How to change the format of the currency by code
I want to add this coordination code "##,####0.0000"
Thank you in advance

Re: change the currency format

Posted: Mon Mar 30, 2015 7:27 am
by Alex K.
Hello,

Please try to use the following expression:
{String.Format( "{0:##,####0.0000}", value)}

Thank you.

Re: change the currency format

Posted: Mon Mar 30, 2015 2:55 pm
by waleedhm
Please see the attached image I want access to text field inside the data

Re: change the currency format

Posted: Tue Mar 31, 2015 7:08 am
by Alex K.
Hello,

Sorry, maybe we did not exactly understand your question. Could you explain your issue in more details?

Thank you.

Re: change the currency format

Posted: Tue Mar 31, 2015 2:36 pm
by waleedhm
I have text box How Can I change the format of its currency

Re: change the currency format

Posted: Wed Apr 01, 2015 11:03 am
by Alex K.
Hello,

Please try to use the following code:

Code: Select all

report.Load("");
StiText txt = report.GetComponentByName("Text1") as StiText;
txt.TextFormat = new StiCurrencyFormatService(1, 5, ",", 2, " ", 3, "$", true, true, " ");
Thank you.

Re: change the currency format

Posted: Thu Apr 02, 2015 1:32 am
by waleedhm
thank you very much good work
excellent technical support

Re: change the currency format

Posted: Thu Apr 02, 2015 4:14 am
by Andrew
Hello,

We are always glad to help you!

Re: change the currency format

Posted: Sat Apr 18, 2015 7:44 pm
by waleedhm
The problem appeared to me in the case of the search text box 3, for example, working in aunt and quality of the report, but in the case of the amendment to the report and delete or change the name shows me the problem
Dim Text3As StiText = TryCast(Report.GetComponentByName("Text3"), StiText)
Text3.TextFormat = New StiCurrencyFormatService(1, 0, ",", Currency, ",", 3, "", True, False, " ")

Re: change the currency format

Posted: Mon Apr 20, 2015 1:43 pm
by Alex K.
Hello,

Could you explain your issue in more details?

Thank you.