Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: Hide Line Object when bottom of page Post Reply Post New Topic
Author Message
EddiRae
Newbie
Newbie


Joined: 29 Aug 2008
Online Status: Offline
Posts: 30
Quote EddiRae Replybullet Topic: Hide Line Object when bottom of page
    Posted: 15 Oct 2014 at 8:58am
Hello,
I have a report that contains a box that goes from the Page Header down to the Page Footer.
 
I also have lines that go under each detail row. 
 
When I get to the bottom of the page, the last row has both the box line and the row line.
 
I am wanting to hide the row line.  I have it in a detail section all by itself.
I am not sure what to place in the suppression expression that will filter for this.
 
Any help would be greatly appreciated.
 
Thanks in advance!!
Eddi Rae
IP IP Logged
z9962
Senior Member
Senior Member
Avatar

Joined: 04 Jul 2012
Online Status: Offline
Posts: 161
Quote z9962 Replybullet Posted: 15 Oct 2014 at 9:47pm
not onlastrecord in the details suppress should do it.
IP IP Logged
EddiRae
Newbie
Newbie


Joined: 29 Aug 2008
Online Status: Offline
Posts: 30
Quote EddiRae Replybullet Posted: 21 Oct 2014 at 8:59am
z9962,
Thanks for your input.
 
Using the OnLastRecord is only for the last record of the entire report.  I am talking about the last record of a page.  Or even the first record of the page.  Is there a variable for this?
IP IP Logged
EddiRae
Newbie
Newbie


Joined: 29 Aug 2008
Online Status: Offline
Posts: 30
Quote EddiRae Replybullet Posted: 21 Oct 2014 at 9:41am
I found what I needed to do.  Below is how I accomplished it.
 
1.  Create a Counter_Reset field with the following expression and place this in the Page Footer section
 
whileprintingrecords;
shared numbervar counter := 0
2.  Create a Counter field with the following expression and place this in the Detail section that does not have the line
 
whileprintingrecords;
shared numbervar counter :=counter +1;
 
3.  Make sure that the main Detail section (Details) has the "Keep Together" checked.  For the Details section with the line, have the following expression for the Suppress X-2
 
whileprintingrecords;
shared numbervar counter ;
counter = 0;
 
Thanks for everyone's help!!
Eddi Rae
 
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.