Page 1 of 1

change color of text in crosstab value by another value

Posted: Tue Feb 22, 2011 1:52 pm
by michal.schoralek
In cross tab there is bound value from dataset called xyDS and in tag there is bound name of color (also from dataset). I want to change color of value by the name of color in tag.

Dataset looks like
Column string
Row string
Value int
Color string

If I use (without using tag, just directly from dataset)
public void CrossTab1_Sum1_GetCrossValue(object sender, Stimulsoft.Report.CrossTab.StiGetCrossValueEventArgs e)
{
this.CrossTab1_Sum1.TextBrush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.FromName(xyDS.Color));
}
then the color of all cells (values) is changed by the color in latest record in dataset.

If I use
public void CrossTab1_Sum1_GetValue(object sender, Stimulsoft.Report.Events.StiGetValueEventArgs e)
{
((StiText)sender).TextBrush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.FromName(((StiComponent)sender).Tag.ToString()));
}
nothing happen.

Is there any way to change color of text cell by cell ?

change color of text in crosstab value by another value

Posted: Wed Feb 23, 2011 2:25 am
by Alex K.
Hello,

Please send us your report with sample data for analysis.

Thank you.

change color of text in crosstab value by another value

Posted: Fri Feb 25, 2011 11:11 am
by michal.schoralek
Hello,
there are the files.


Regards,

Michal


change color of text in crosstab value by another value

Posted: Mon Feb 28, 2011 7:45 am
by Alex K.
Hello,

Sorry for the delay with response. We need some additional time to check the issue.

Thank you.

change color of text in crosstab value by another value

Posted: Sat Mar 05, 2011 6:37 am
by Alex K.
Hello,

Unfortunately, you cannot implement this feature to the Cross-Tab component.
As a way, if the list of color is not very long, then you can set a saparate Condition for each color (if tag == "Blue" then set text color to blue, etc).

Thank you.

change color of text in crosstab value by another value

Posted: Mon Mar 14, 2011 5:03 am
by guaike
Aleksey wrote:Hello,

Unfortunately, you cannot implement this feature to the Cross-Tab component.
As a way, if the list of color is not very long, then you can set a saparate Condition for each color (if tag == "Blue" then set text color to blue, etc).

Thank you.
Hi,i have same problem with this,How to do this step?

change color of text in crosstab value by another value

Posted: Tue Mar 15, 2011 1:25 am
by Alex K.
Hello,

Please see tha sample report in attachment.

Thank you.