Print Page | Close Window

Rounding Formula Issue (CR2008)

Printed From: Crystal Reports Book
Category: Crystal Reports for Visual Studio 2005 and Newer
Forum Name: Report Design
Forum Discription: The best way to design a report and problems you have encountered
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=9887
Printed Date: 29 Apr 2024 at 9:55am


Topic: Rounding Formula Issue (CR2008)
Posted By: abeneventi
Subject: Rounding Formula Issue (CR2008)
Date Posted: 03 May 2010 at 9:48am
Hello, I'm facing this problem: I have a report with a lot of fields with Custom Style for Numbers Rounding (Format Field -> Numbers -> Customize -> Rounding). Both values for decimals and rounding are set to 1 but there is a formula specified for both:

if {TD.Zone}=0
then 0
else 2


When I export the report to PDF from a custom application there are no decimals and no roundings even if TD.Zone = 4. There should be 2 decimals and the rounding should be set to 2.

Let me explain better: I see a number like 120.00 instead of 120.14

It seems like the application is ignoring the formula for the roundings.

Anyone can help me?

Best regards.



Replies:
Posted By: lockwelle
Date Posted: 03 May 2010 at 12:03pm

does the report display correctly? 

If it is just on export to PDF...well, you really have no control over that, and I have no idea how to assist.
 
HTH



Print Page | Close Window