473,396 Members | 1,938 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Crystal reports help possible here?

Firstly, I'm using the .NET version (with VB) here, not the full version, I
have no
idea if this is possible -

I would like to change the colour of a rectangular box in the report
depending on the values of one of the fields in a record in the database,
which is contained in the report recordset. In other words, I think I need
some event that fires per row when generating the report. I cannot find
such a method either on ReportViewer control or in ReportDocument object.

Can anyone tell me how to do this please?

Apologies for cross posting.
Nov 20 '05 #1
4 1093
jim
HI Robin, since the report itself is iterative, i would think that you're
better off letting the report itself handle this. In your report definition
just go to "Format Field", "Border" tab... click the "Background" checkbox
and set a codition by clicking on the "X-2" button.

something along the lines of...
\\\
if {myTable.GrossProfit} <0 then
Red
else if {myTable.GrossProfit} = 0 then
Black
else
Green
///

this would set the field background color to red, if the value was less than
zero, black if it is zero and green if it's greater than zero.

hope this helps,

jim

"Robin Tucker" <id*************************@reallyidont.com> wrote in
message news:c1*******************@news.demon.co.uk...
Firstly, I'm using the .NET version (with VB) here, not the full version, I have no
idea if this is possible -

I would like to change the colour of a rectangular box in the report
depending on the values of one of the fields in a record in the database,
which is contained in the report recordset. In other words, I think I need some event that fires per row when generating the report. I cannot find
such a method either on ReportViewer control or in ReportDocument object.

Can anyone tell me how to do this please?

Apologies for cross posting.

Nov 20 '05 #2
Ah - ok, I didn't realise I could do this. Much better solution.

Thanks will give it a go.

"jim" <james_matthews_at_shi_dotcom> wrote in message
news:OQ****************@TK2MSFTNGP09.phx.gbl...
HI Robin, since the report itself is iterative, i would think that you're
better off letting the report itself handle this. In your report definition just go to "Format Field", "Border" tab... click the "Background" checkbox
and set a codition by clicking on the "X-2" button.

something along the lines of...
\\\
if {myTable.GrossProfit} <0 then
Red
else if {myTable.GrossProfit} = 0 then
Black
else
Green
///

this would set the field background color to red, if the value was less than zero, black if it is zero and green if it's greater than zero.

hope this helps,

jim

"Robin Tucker" <id*************************@reallyidont.com> wrote in
message news:c1*******************@news.demon.co.uk...
Firstly, I'm using the .NET version (with VB) here, not the full version,
I
have no
idea if this is possible -

I would like to change the colour of a rectangular box in the report
depending on the values of one of the fields in a record in the

database, which is contained in the report recordset. In other words, I think I

need
some event that fires per row when generating the report. I cannot find
such a method either on ReportViewer control or in ReportDocument object.
Can anyone tell me how to do this please?

Apologies for cross posting.


Nov 20 '05 #3
Try:-
microsoft.public.vb.crystal

Merlin
"Robin Tucker" <id*************************@reallyidont.com> wrote in
message news:c1*******************@news.demon.co.uk...
Firstly, I'm using the .NET version (with VB) here, not the full version, I have no
idea if this is possible -

I would like to change the colour of a rectangular box in the report
depending on the values of one of the fields in a record in the database,
which is contained in the report recordset. In other words, I think I need some event that fires per row when generating the report. I cannot find
such a method either on ReportViewer control or in ReportDocument object.

Can anyone tell me how to do this please?

Apologies for cross posting.

Nov 20 '05 #4
Its pretty slow over there to be honest. This place is much more alive!

"Merlin" <iM*****@hotmail.com> wrote in message
news:c1**********@sparta.btinternet.com...
Try:-
microsoft.public.vb.crystal

Merlin
"Robin Tucker" <id*************************@reallyidont.com> wrote in
message news:c1*******************@news.demon.co.uk...
Firstly, I'm using the .NET version (with VB) here, not the full version,
I
have no
idea if this is possible -

I would like to change the colour of a rectangular box in the report
depending on the values of one of the fields in a record in the

database, which is contained in the report recordset. In other words, I think I

need
some event that fires per row when generating the report. I cannot find
such a method either on ReportViewer control or in ReportDocument object.
Can anyone tell me how to do this please?

Apologies for cross posting.


Nov 20 '05 #5

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

Similar topics

4
by: Rick Thiel | last post by:
Hello, I am trying to build a Crystal report VisualStudio.NET for an ASP.NET application. I would like to build a report that doesn't connect to any particular database at design time because I...
5
by: BStorm | last post by:
I have a transaction log file where the DataSet table's Description column is actually delimited into "subcolumns" based upon the transaction id. I would like to parse these into separate fields...
1
by: Dave | last post by:
I know there is some Crystal Reports functionality in .NET but I was wondering if it was possible to actually schedule Crystal Reports dynamically using csharp code and/or generate reports...
0
by: Jakke | last post by:
Hi all, I don't know if I'm at right newsgroup but I've got some questions about integrating Crystal Reports into my own application. I'm totally new regarding Crystal Reports. Therefore I've...
3
by: Gheaci Maschl | last post by:
Hi all! I would like to have your opinion about my problem and my proposal how to solve it: Ingredients: - BTriev database - Crystal Reports - maybe MS Access - Liinos6 (small ERP software)
2
by: Prateek | last post by:
Hi All, Can anybody throw some light on this? I have a crystal report that shows data from a table. This works fine.. However, my requirement is to run an ASP.NET page within crystal so that...
0
by: Robert Warnestam | last post by:
Hello, I have some problems deploying Crystal Reports. I'm using Visual Studio 2005 Beta 1. In this version Crystal Reports (9.7.3500.0) is included. I created a small test application...
17
by: Peter Proost | last post by:
Hi Group, I've got an interesting problem, I don't know if this is the right group but I think so because everything I've read about it so far says it's a .net problem. Here's the problem, we're...
2
by: Rod | last post by:
We've got an old VB6 application which has 9 Crystal Reports it can print. These 9 reports are considered by our users to be in essence one "report", in the sense that they are all related and they...
2
by: =?Utf-8?B?Um9zcyBNYXNvbg==?= | last post by:
Hi I am interested in using crystal reports for the first time but have a few questions that someone maybe able to help with before I get started. The background to my query is that a client is...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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...
0
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,...

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.