Quantcast
Channel: SCN : Unanswered Discussions - SAP Crystal Reports
Viewing all articles
Browse latest Browse all 4814

Printing group header

$
0
0

Hello to All,

 

I'm using CR 2008 12.5.0.1190.

I'm looking for a way display/print by alternating background color (white and grey) in a report that contains some group headers, one group footer and one page footer and one detail row.

There is a suppress condition on each group header.

 

Actually I'm using a global numevar to count the rows and a background condition on a text object that display the background in a line with the following formula :

WhilePrintingRecords;

Global Numbervar RowCount;

if RowCount mod 2 <> 0 then RGB(200,200,200)

else

RGB(255,255,255)

 

 

 

I have two formulas fields, 1st in the page header that reset the counter and the 2nd in each group footer and detail row that adding one in a formula like :

RowCount:=RowCount + 1

 

The problem is that when a group header is not displayed/printed (because suppress condition) CR display/print two adjacent lines with the same backgroud.

 

Is there another way to do that or how can I verify if the previous section has been displayed/printed ?

 

If someone has any idea thank to let me know.

 

Chris


Viewing all articles
Browse latest Browse all 4814

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>