Crystal Reports 2008 - Change currency symbol at runtime in

Posted on 2010-11-10
Last Modified: 2012-05-10
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?

Question by:Sally_S
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
LVL 101

Expert Comment

ID: 34106239
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


Author Comment

ID: 34106583
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.
LVL 101

Accepted Solution

mlmcc earned 150 total points
ID: 34106882
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.

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now


Author Comment

ID: 34107141
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.
LVL 101

Expert Comment

ID: 34107636
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.


Assisted Solution

msd1305 earned 100 total points
ID: 34108971
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.

Expert Comment

ID: 34109007
ASCII codes for the some popular currencies

$ - 36
£ - 163
€ - 128
¥ - 165

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question