Question

Our application has a crystal report (v.8) set to display a certain "Amount" field in Norwegian currency format (dots and commas switch places: 1,234.56 becomes 1.234,56). This field's value is fetched using a database connection by the report. Now if the machine's regional settings are kept English(US), the report works as expected. But for Norwegian regional settings, the amounts become 100 times less. i.e. if amount for a record in the database is 1.234,56 (1,234.56 in en-US), on the report it turns out to be 12,34 (100 times less than original). What could be the issue here? How can I get it working with Norwegian settings since those are the machine defaults?

Screenshot below shows how the field has been formatted in the crystal report. Another weird thing is that, instead of custom style, if I choose 'System Default Number Format' and click OK, this selection doesn't get saved, on viewing the formatting of the field again it will show 'Custom Style' selected. [Using crystal reports v8.5]

Formatting for Amount field

Details:

  • Operating System: Windows Server 2003 R2
  • Application platform: COM - Visual Basic 6.
  • Crystal Reports version: 8/8.5
  • Database: MS SQL Server 2008 (ODBC)

Update: On whether ODBC connection (vs. native) is the problem - If I use ODBC connection under Crystal Reports application, this report works correctly. Issue occurs only if I run it via our application.

Was it helpful?

Solution 2

In the end, we upgraded the app to Crystal Reports 10 developer components and the issue disappeared. Found no way of fixing this while it was still on CR8.

OTHER TIPS

If you have the option, try switching from an ODBC driver to a 'native' driver. See if the problem is resolved.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top