I'm working with a Crystal Reports export with different localization. For this example, I'm trying to set the localization to French which uses Euros.
I set the localization with the following C# code:
ReportDocument report = new ReportDocument();
report.ReportClientDocument.LocaleID = CrystalDecisions.ReportAppServer.DataDefModel.CeLocale.ceLocaleFrench;
report.ReportClientDocument.PreferredViewingLocaleID = CrystalDecisions.ReportAppServer.DataDefModel.CeLocale.ceLocaleFrench;
report.ReportClientDocument.ProductLocaleID = CrystalDecisions.ReportAppServer.DataDefModel.CeLocale.ceLocaleFrench;
When I export the report the following value is displayed:
135,00 $
Notice that the format of the number changed correctly, but the currency symbol didn't.
I've been searching for a solution but pretty much everything focuses on changing the currency at design time, but I need to be able to change it at run time depending on some other values that the user selects.
I've seen some hints around using parameters to pass in a value and using a formula in the designer but I'm not familiar enough with Crystal Reports to figure it out.
I'm using Crystal Reports 10.5 with Visual Studio 2010 and .Net 3.5.
Any help or tips is appreciated.