Click here to Skip to main content
12,079,391 members (26,363 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: CrystalReports
hi..i have crystal report that diaplay (0.000) decimal format value from dataset..but it is display as string type in crystal report..so its getting rounded..but i can display exact value in my dataset..so how can i display this exact value in crystal report??any help please??
Posted 16-Aug-12 20:05pm
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

You need formationg of the ToString, first how its done:
http://msdn.microsoft.com/en-us/library/fzeeb5cd.aspx[^]

Different styles:
http://msdn.microsoft.com/en-us/library/dwhawy9k.aspx[^]
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

Too bad you did not provide any code sample, but the chances are, you just need to take care about the formatting of the decimal values to be presented. This should explain it:
http://rmanimaran.wordpress.com/2011/02/23/crystal-report-formatting-the-decimal-field-custom-styling/[^].

—SA
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 3

Please use CStr(x,y) to format the decimal value in formula. y is decimal place.
ex. CStr({IFieldValue}, 3)
ToText is another way.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web03 | 2.8.160212.1 | Last Updated 12 Aug 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100