PC Review


Reply
Thread Tools Rate Thread

Crystal reports help possible here?

 
 
Robin Tucker
Guest
Posts: n/a
 
      24th Feb 2004
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.


 
Reply With Quote
 
 
 
 
jim
Guest
Posts: n/a
 
      24th Feb 2004
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" <(E-Mail Removed)> wrote in
message news:c1fdit$eh7$1$(E-Mail Removed)...
> 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.
>
>



 
Reply With Quote
 
Merlin
Guest
Posts: n/a
 
      24th Feb 2004
Try:-
microsoft.public.vb.crystal

Merlin
"Robin Tucker" <(E-Mail Removed)> wrote in
message news:c1fdit$eh7$1$(E-Mail Removed)...
> 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.
>
>



 
Reply With Quote
 
Robin Tucker
Guest
Posts: n/a
 
      24th Feb 2004
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:OQMlh4t%(E-Mail Removed)...
> 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" <(E-Mail Removed)> wrote in
> message news:c1fdit$eh7$1$(E-Mail Removed)...
> > 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.
> >
> >

>
>



 
Reply With Quote
 
Robin Tucker
Guest
Posts: n/a
 
      24th Feb 2004
Its pretty slow over there to be honest. This place is much more alive!

"Merlin" <(E-Mail Removed)> wrote in message
news:c1fm7t$cor$(E-Mail Removed)...
> Try:-
> microsoft.public.vb.crystal
>
> Merlin
> "Robin Tucker" <(E-Mail Removed)> wrote in
> message news:c1fdit$eh7$1$(E-Mail Removed)...
> > 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.
> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Crystal Reports Does Not Display BLOB Field Correctly in IBlobField Control Using Crystal Reports for VS.NET 2003 Jeff Microsoft Dot NET 0 4th May 2006 09:21 PM
First time crystal report user - How do i create a crystal reports from asp.net web form? Learner Microsoft ASP .NET 1 11th Jan 2006 08:20 PM
Calling Crystal Reports in ASP.NET using the rptserver.asp given by Crystal Reports Peri Microsoft ASP .NET 1 21st Jul 2005 01:56 PM
Calling Crystal Reports in ASP.NET using the rptserver.asp given by Crystal Reports Peri Microsoft VB .NET 1 21st Jul 2005 01:56 PM
Crystal Reports - Setting up a one-to-many relationship in a crystal report Stu Microsoft VB .NET 2 31st Jan 2005 07:27 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:42 AM.