Crystal Reports 2008 - Change currency symbol at runtime in

We are using Visual Basic 2008 and Crystal Reports 2008. At runtime, we need to change currency symbols, thousand separators and decimal symbols for amount fields in our reports. We allow our customers to specify this and do not use the regional settings. I can not find the means of doing this although we can customize a lot of other properties in crystal reports.

Any ideas?

Who is Participating?
mlmccConnect With a Mentor Commented:
How are they going to specify the values to use?

If you can have those values passed in as parameters, you can use the conditional formatting to set the values using the parameters
See the attached report.

How are they specifying?

You could pass the values to the report in parameters and tghen use the conditional formatting to set the symbols.

Right click a field
Use the formula buttons to the right of the symbols to set the appropriate value

Sally_SAuthor Commented:
Thank you for your response but I want to be able to apply the formatting at run-time not at design time. We don't know what the settings are until the end user runs the report - at that point they specify the currency symbol, etc.
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Sally_SAuthor Commented:
Okay - I see where you're going. I can certainly have the values specified as parameters, but I think the conditional formatting is the problem. The CR properties that we see for setting the currency symbol, etc are not available as properties that I can set in VB.Net.
Then you are probably out of luck.  you may need to use the full version.

The other way woul dbe to set the Windows regional settings and use those as Crystal wants to.

msd1305Connect With a Mentor Commented:
There is a solution.

Pass your Currency Symbol as a parameter. e.g. Rs.

now, right click on your field ->Format Field->go to Number tab-> click on Customize->click on Currency Symbol-> select the option Enable Currency Symbol-> in the bottom you will see an option to set currency symbol (filled with $ by default)-> click on the formula buttom  next to it and in the formula editor just select your parameter.

Now your currency symbol will change as per the parameter you pass in.

You can have more fliexibility by passing the ascii value of your currency symbol. e.g 36 for $.

and then you can generate the symbol in crystal by specifying chr(36).

I hope this is clear. Please feel free to ask if you have any doubts.
ASCII codes for the some popular currencies

$ - 36
£ - 163
€ - 128
¥ - 165
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.