Skip to Content

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Dec 01, 2018 at 09:22 AM

    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

    Add comment
    10|10000 characters needed characters exceeded