cancel
Showing results for 
Search instead for 
Did you mean: 

How to give every section on a summary report a different color like a rainbow.

0 Kudos

I have a report grouped by state and we want the report to have a different color for each group (STATE) sort of like a rainbow.

Using crystal reports 2016

Accepted Solutions (1)

Accepted Solutions (1)

abhilash_kumar
Active Contributor

Hi Joe,

You can use a random number generator to automatically color a section.

Go the Section Expert > Highlight the Group Header > Color tab > Click the formula button beside Background color > Use this code:

Color(int(rnd(1)*200), int(rnd(1)*150), int(rnd(1)*140))

You can change the multiplication factors above to a smaller number to change the shades.

-Abhilash

0 Kudos

Thanks I found another way but your makes more sense and appears easier but I would not have thought of it.

Answers (0)