How to toggle lines of a report with custom colors Crystal Reports and C# winforms?

Asked

Viewed 1,448 times

4

In the report I’m doing, I’ve managed to alternate colors by doing the following: Access to the Menu: Crystal Reports - Report - Section Expert Select the section Details and click on the tab Color Click on the formula button x-2, will Bir the formula editor

Put the following code:

if (RecordNumber mod 2) = 0 then crNoColor else crSilver

The problem is that the gray color (crSilver) It’s too dark, I need to get a lighter gray, which doesn’t run far from white.

I wonder if there is any way to customize colors, and assign names to them and later use these names in Crystal Reports? Or if there is a list of colors with their respective names on Crystal Reports?

1 answer

6


You have the Function Color (red, green, blue)

You can have a help in a normal color edition , "more" button edit the color as you want and use the red, green and blue parameters in the cited Function.

BS : I make "zebrado" with crSilver but I don’t think too dark

  • 1

    Thanks @Motta! I used "Color(223,223,223)" and it was the way I wanted it. Thanks brother!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.