Solved

Shade every other row in a report

Posted on 2004-09-21
4
545 Views
Last Modified: 2008-01-09
Does anyone know how to shade every other row in Crystal Reports?  I was thinking that there is a formula to pick the even/odd records and put that formula in the background color formula section on the details section.

Thanks
0
Comment
Question by:blouckswwu
  • 3
4 Comments
 
LVL 42

Accepted Solution

by:
frodoman earned 125 total points
ID: 12112149
Report -> Section Expert.  Pick the section you want (details probably).  Click the color tab, then click the formula (X+2) button and enter this:

if remainder(recordnumber,2) = 0 then crWhite else crBlue;

frodoman
0
 
LVL 42

Expert Comment

by:frodoman
ID: 12112165
Of course you can use whatever colors you want, it doesn't have to be white & blue.  You can also use crDefault to allow whatever color you've already set and you can use RGB(x,y,z) to specify a custom color.

frodoman
0
 

Author Comment

by:blouckswwu
ID: 12112177
That worked perfectly.  Thanks frodoman.  Have a good day!
0
 
LVL 42

Expert Comment

by:frodoman
ID: 12112246
Glad to help.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Cross-tab sort rows by field not displayed 6 50
Grand Totals on Crystal Reports 7 38
Crystal Reports last day of month 2 44
Crystal Report for VS2013 17 77
I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now