Color DataBand
-
- Posts: 219
- Joined: Tue Oct 27, 2015 4:19 pm
Color DataBand
Hello.
In my database I have the whole number of a color. Is it possible to convert this number into a color and paint the band?
Thank you.
In my database I have the whole number of a color. Is it possible to convert this number into a color and paint the band?
Thank you.
Re: Color DataBand
Hello, Leandro.
You could set the color using the Before Print event of the Band.
Thank you.
You could set the color using the Before Print event of the Band.
Code: Select all
((sender as StiDataBand).Brush as StiSolidBrush).Color = Color.Blue;
-
- Posts: 219
- Joined: Tue Oct 27, 2015 4:19 pm
Re: Color DataBand
Hello.
It worked. But it has another detail, if the color is dark, the text component the band needs to change its color to a light color and vice versa. Is there a function that identifies whether the color is light or dark?
Thank you.
It worked. But it has another detail, if the color is dark, the text component the band needs to change its color to a light color and vice versa. Is there a function that identifies whether the color is light or dark?
Thank you.
Re: Color DataBand
Hello,
Unfortunately, the are not functions for this task.
You need check it in you code.
Thank you.
Unfortunately, the are not functions for this task.
You need check it in you code.
Thank you.
-
- Posts: 219
- Joined: Tue Oct 27, 2015 4:19 pm
Re: Color DataBand
Hello,
Ok.
Thank you.
Ok.
Thank you.
Re: Color DataBand
Leandro,
We are always glad to help you.
We are always glad to help you.