Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: [crosstab] rows background Post Reply Post New Topic
Author Message
ciccio17
Newbie
Newbie
Avatar

Joined: 09 Oct 2009
Location: Italy
Online Status: Offline
Posts: 4
Quote ciccio17 Replybullet Topic: [crosstab] rows background
    Posted: 09 Oct 2009 at 7:26am
Hello,
 
I don't know if this is the right section to ask, in case of error, feel free to move/close the topic. Smile
 
I have a problem using CR2008:
I am using a crosstab with various rows/cols, and I need to change the rows background-color depending of the value of one of these fields.
 
I'll show some of my entries:
 
row1: "aaa", "255, 255, 255", "somevalue"..
row2: "bbb", "120, 255, 255", "somevalue"..
row3: "ccc",  "240, 240, 255",  "somevalue"...
 
and so on...
 
 
I need to set the row1 color on color(255,255,255), row2 color on color(120, 255,255), but I'm still missing the point to do that.
 
I tried the following formula in the background formula editor :
 
 
stringvar x:= {"fieldName"};
stringvar s1 := Split (x, ",")[1];
stringvar s2 := Split (x, ",")[2];
stringvar s3 := Split (x, ",")[3];
numbervar n1 = Val(s1);
numbervar n2 = Val(s2);
numbervar n3 = Val(s3);
color(n1,n2,n3);
 
but It doesn't work.
 
Any help will be appreciated.
 
Thank you


Edited by ciccio17 - 09 Oct 2009 at 7:43am
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.020 seconds.