Writing Code
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Writing Code
Message Icon Topic: Row Color Post Reply Post New Topic
Author Message
Kanesh
Newbie
Newbie


Joined: 17 Jun 2008
Online Status: Offline
Posts: 10
Quote Kanesh Replybullet Topic: Row Color
    Posted: 17 Jun 2008 at 6:37am
Greetings,
 
I have to give some rows of my report a special color:
In my datatable i have a Column Named 'Par'.
I have to do a check and see the value of that column and if it is equal to 'color',  then i have to make the color of that row blue.
 
How can i solve this please?
 
Thanx.
IP IP Logged
jkwrpc
Senior Member
Senior Member


Joined: 19 Jun 2007
Location: United States
Online Status: Offline
Posts: 432
Quote jkwrpc Replybullet Posted: 17 Jun 2008 at 11:54am
In the section expert you have a Color tab check background color, use the formula button on that tab to create a formula.
 
You would use an if statement something like (assumes that color is a string)...
 
If {datafield} = 'color' then crBlue;
 
You could use the rgb numbers for a custom shade of blue. This is available in CR2008, I have not looked at earlier verisons. However, it should get you close to what you are looking for.
 
Regards,
 
John W.
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.