473,804 Members | 3,031 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Forcing Crystal Reports formula field to be float

I've created a formula field called "BaseField" in a crystal report in VS
2003. At run time, I dynamically change the formula depending which field
the user selects to view

for example

FieldName = "{@DistanceKm}" ;
rpt.DataDefinit ion.FormulaFiel ds["BaseField"].Text = FieldName;

At run time, even though I've set decimal places to 2 in the property editor
for BaseField, this field is showing the integer truncated value with ".00"
tacked onto the end of the string
How do I force this field to show itself as a float please?

thanks
Mar 28 '07 #1
0 2115

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
19189
by: Stephan | last post by:
Hi, I'm using Visual Studio 2003 (C#) with the integrated Crystal Report software and have the following question: How can I assign a value (string) to an unbound (string) field in Crystal Report at runtime? Example: private void button1_Click(object sender,
0
1488
by: Matt Fuerst | last post by:
Greetings all, I'm having an issue with my Web application. It's deployed using Crystal Reports 8.0 Developer edition. I have an RPT file with a relatively large number of formulas (30+). I did not create this RPT file and I loathe to change it as I am not very well versed in the field. I also did not create the ASP to generate reports, but inherited it too, so I am really speaking from what I
1
345
by: Jerry | last post by:
Hi, I want to create a compound field i.e. CityStateZip and then build a formula that is composed of the 3 data elements .City, .State and .ZIP. I've done this before creating a formula in the "real" Crystal reports product but on this machine all I have is the version of Crystal that comes with VisualStudio. I can't figure out how to add a formula field to my report. Does this feature exists in this version?
3
2234
by: chrispycrunch | last post by:
I exported a column of type float to SQL Server using DTS. In Crystal reports, it 'sees' the column as a string! Is 'float' the best type to use? Must I create a formula field in CR to 'correct' for this?
0
1598
by: Zoury | last post by:
Hi there ! :O) I'm having a two strange behaviors with Crystal Report which seems to have the same cause.. All the fields used in the reports comes from some SQL Server views. *** 1st Problem :
3
4176
by: Brad | last post by:
I know this is the VB group, but maybe somebody knows the answer to this. On a Crystal Report that I am using as a form, it pulls in various dated information. In the fields where there are dates I have boxes drawn. What I need is if there is a date in the field, I want this box to be blacked-out or "X"ed. How is this done? I know about the small "x" or small "o" wingding, but how do I say in a crystal report that if field1 is not...
3
36477
by: Tmuld | last post by:
Hello, I was provided a .rpt file which is Crystal Reports report. It opened with VS .NET 2003. On the left side in the Field Explorer - there are seveal categories - Database Fields - Formula Fields
6
6588
by: G. Stoynev | last post by:
I can't seem to be able to prevent a Crystal Reports formula to evaluate an expression when the report contains no records to show. Here's the formula (DateTransferred is a DateTime column): If IsNull({MyReportDataSet.DateTransferred}) Then " " //empty string Else If ({MyReportDataSet.DateTransferred} = CDate("1/1/1900")) Then " " //also pring an empty string - 1/1/1900 means "no date was
0
1792
by: lcm84 | last post by:
Let me just say...I have spent almost the entire day trying to learn as much as I can about Crystal Reports. Ok, here's what I want. I have a lot of Variables in my Database Fields (over 50). Most of these fields have values of 1 or 0. In the report I would like it to say TRUE or FALSE to correspond to those values. I have tried using the Formula Fields...but was only able to get one field at a time...like... if {Variables.value1} =...
0
9579
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10317
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10075
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9143
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7615
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6851
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4295
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3815
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2990
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.