Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Background colors in groups Post Reply Post New Topic
Author Message
Andrew T
Newbie
Newbie


Joined: 01 Dec 2008
Online Status: Offline
Posts: 1
Quote Andrew T Replybullet Topic: Background colors in groups
    Posted: 01 Dec 2008 at 11:18am
Is there a way to have the detail line color restart on a new group, so the first line is always no color when a group starts?

Edited by Andrew T - 01 Dec 2008 at 11:22am
IP IP Logged
rahulwalawalkar
Senior Member
Senior Member
Avatar

Joined: 08 Jun 2007
Location: United Kingdom
Online Status: Offline
Posts: 731
Quote rahulwalawalkar Replybullet Posted: 02 Dec 2008 at 2:51am
Hi
 
Create a running total based on the group use the below settings for Running total
 
Field to summarize group field
Type of Summary :Count
Evaluate for each record
Reset OnChange of Group
 
Once done Go to Details Section right click Select Section Expert then Click Color Tab in Section Expert and write the code below

if {#RTotal0} > 1 then

crSilver

else

crWhite

this will keep the first line in group with nocolor rest will be CrSilver,but if you have single detail line related to group ,that will also be in nocolor.

Cheers

Rahul
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.016 seconds.