473,545 Members | 2,688 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to format a report item in .NET + SQL server reports

Hi,

Currently I am designing some reports in ASP.NET using SQL Server
reporting services-2000

I want to format a report item (a column in the report) like the
following. Just consider a report item called Annual Target (AT),
it's a calculated field based on some database fields

If the value of AT is whole number (e.g.: 0, 1, 45, 86,100) I want to
show without decimal value
E.g. 45% or 100% or 0% or 60% or 83%

If AT is a decimal value then I want to show with one decimal e.g.
34.3% or 45.4%

Can any one help me here, how to achieve this with expression or
properties of the report item. I tried some thing but its being applied
for all values. e.g : 100.0%, 60.0%, 44.0% 0.0%, which is not correct

Many thanks

- MSK

Jun 1 '06 #1
0 1041

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

Similar topics

1
4232
by: jandoca | last post by:
Hi, I am new to crystal reports and I have to build some reports and call them from an ASP page and display them. I am using Crystal Reports Developer 9.0 and the client has Professional 9.0. I have been doing research on it and I can't figure it out. I am used to using com objects and active reports to display reports like this. I just need...
3
5617
by: marwa mohamed | last post by:
salamo alikom hi all when i run report that includes image control linked to a field in the table that contains the image path(on the server)and the record source of the report contains over 30 records a messege shows saying: "Microsoft Access doesn't support the format of the file'file path\filename.jpg' or file is too large.Try converting...
1
1359
by: Johnny Gee | last post by:
Hi All I have a macro that I use to send three reports every week to about 10 people by email via Lotus Notes.I use the "Send To" command to send the reports out in Rich Text Format. I used RTF because it was the most compatible way for everybody to open the report. For reasons unknown to me, one of the reports changed "itself" to .xls...
3
7443
by: kmacon | last post by:
I have a form that contains a command button. The command button's OnClick event builds a report using the CreateReport and CreateReportControl functions and then opens the main report. I set the OnFormat property of the detail section in the subreport to a function which is located in a standard module. I am not able to access the...
5
4134
by: bcanavan | last post by:
When I export xml(and xls) from Access 2003 the result is a complete report in a single page. I would like to get the entire report in a single page (one trip to the server) for printing and scrolling-preview, but with page breaks and page numbering appropriate to the paper size. I have a sense that this can be done in xsl, since xsl...
0
1529
by: Dipendra | last post by:
Have Windows App which makes call to Crystal Reports which is being published as web services. It works but really slow. stored procedures are used to get data from database. The windows app has crystal viewer which consumes the crystal report web service. The problem is, there is an audit trail report which I have to compare item by item...
1
2022
by: andy lim | last post by:
Hello all, I'm developing a web application using ASP.NET/VB. I have problem in viewing my CR reports. It returns following exception when I tried to view any CR report. CrystalDecisions.CrystalReports.Engine.LogOnException: Logon failed I found many similar problem in several .NET forums, and no working solution.
0
1714
by: Timmy Jones | last post by:
Hey all, I am trying to try get a crytal report running properly. A "Hello World" report that does not add criteria to the record selection formula of the report (either in the development tool, or in the code) works fine. However, when I try to add any parameter through the record selection formula and/or the report parameters method,...
0
2690
by: Henry | last post by:
I have written an ASP/VB.Net application via VS 2003 (Crystal V9) that uses MS Access 2000 as its database. I can export reports that have no linked sub reports for printing. However, I'm unable to export reports that have linked subreports. I receive (a "Missing parameter field current value") on the following statement: ...
0
7434
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...
0
7692
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7946
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7457
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...
1
5360
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...
0
5078
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...
0
3491
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3470
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
744
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...

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.