Color coding in Crystal

Do you know if there is a way you can either bold or color the fields if certain condition met in Crystal Reports? I have version 8.5

Thanks
sgaurav7Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Kurt ReinhardtSr. Business Intelligence Consultant/ArchitectCommented:
Crystal 8.5 allows you to use the Highlighting Expert against Numeric or Currency fields.  Simply right-click a field or formula and select 'Highlighting Expert'.  Alternately, you can conditionally change the color and style of the font or background of any field  by right-clicking a field and selecting 'Font' or 'Borders and Colors...'.

When you create a formula to conditionally change the appearance of the field, your formula must be a boolean.  That is, there has to be a true and a false value.  For example, here is the syntax for coloring a field when a condition in one of my reports has been met:

IIF({table.pastdue} = 'Y',Red,Black)

~Kurt
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
frodomanCommented:
You can also apply the same technique to a section using the Section Expert.  This can be useful, for example, if you want to color the entire row yellow if some condition is met instead of coloring one or more individual fields.

frodoman
0
mlmccCommented:
2 good suggestions

mlmcc
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Crystal Reports

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.