Click here to Skip to main content
Rate this: bad
good
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 19:05pm
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  
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  

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 6,805
1 OriginalGriff 6,696
2 CPallini 5,350
3 George Jonsson 3,609
4 Gihan Liyanage 2,792


Advertise | Privacy | Mobile
Web02 | 2.8.140922.1 | Last Updated 12 Aug 2013
Copyright © CodeProject, 1999-2014
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