Page 1 of 1
Setting alternate line collors on Data Band
Posted: Thu Feb 19, 2015 1:01 pm
by Paulo Lemos
Hi!
I have a collor picker on my form, and want to set the single data band that I have on my report, to alternate the lines background or font collor from transparent, to the collor from my picker.
Is that a way to do it? Thank you.
Re: Setting alternate line collors on Data Band
Posted: Thu Feb 19, 2015 3:53 pm
by HighAley
Hello.
You could create a variable and path the color to it. Then you can use Begin Render event of the Data band and specify all necessary colors there.
Thank you.
Re: Setting alternate line collors on Data Band
Posted: Thu Feb 19, 2015 5:24 pm
by Paulo Lemos
Thank you Aleksey. I imagined that would be the way to do it, but my question is what's the property that I need to set. If you could spare an example, would be great.
Re: Setting alternate line collors on Data Band
Posted: Fri Feb 20, 2015 6:20 am
by HighAley
Hello.
Could you send us a sample where we could see what you need to change exactly? What do you mean under: "the lines background or font collor from transparent"?
Thank you.
Re: Setting alternate line collors on Data Band
Posted: Mon Feb 23, 2015 7:34 pm
by Paulo Lemos
Aleksey Andreyanov wrote:Hello.
Could you send us a sample where we could see what you need to change exactly? What do you mean under: "the lines background or font collor from transparent"?
Thank you.
Sure Aleksey.
Look for the BeforePrint event in the data band.
Thank you.
Re: Setting alternate line collors on Data Band
Posted: Tue Feb 24, 2015 7:01 am
by HighAley
Hello.
If you need to change the backgroud of the Data Band you should set its Brush with code like this:
Code: Select all
ContratosData.Brush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.FromArgb(255, 183, 221, 232));
Thank you.
Re: Setting alternate line collors on Data Band
Posted: Tue Feb 24, 2015 3:02 pm
by Paulo Lemos
Thank you Aleksey!
Re: Setting alternate line collors on Data Band
Posted: Wed Feb 25, 2015 5:20 am
by HighAley
Hello.
We are always glad to help you.
Let us know if you need any help.
Thank you.