Click here to Skip to main content
15,884,920 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
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

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[^]
 
Share this answer
 
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
 
Share this answer
 
Please use CStr(x,y) to format the decimal value in formula. y is decimal place.
ex. CStr({IFieldValue}, 3)
ToText is another way.
 
Share this answer
 

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


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900