Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rows background color in Cross tabs in crystal Clear version 6

Status
Not open for further replies.

Garciaparra

Programmer
May 12, 2009
1
AT
Hello,

How can i alternate the background color of a cross table. i would like to alternate the rows color. i'm using Crystal 6.5.24.
I have seen this question for the crystal 9.0, the proposed solution however doesn't work in my Crystal version.

This is the solution proposed for crystal 9.0

{
For the row labels, right click on the cell->format field->border->color->background->x+2 and enter:

whileprintingrecords;
numbervar d;
d := iif(d=100,255,100);
color(255,255,d);

For the inner cells and for the row total, format the field with:

whileprintingrecords;
numbervar c;
c := iif(c =255,100,255);
color(255,255,c)
}

thanks for any help.
 
in the section expert Details -- Color tab insert this


if remainder(recordnumber,2) = 0 then crwhite else rgb(234,244,255)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top