Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Suppress page header if no data on page Post Reply Post New Topic
Author Message
KThroll
Newbie
Newbie
Avatar

Joined: 19 Feb 2008
Location: Germany
Online Status: Offline
Posts: 2
Quote KThroll Replybullet Topic: Suppress page header if no data on page
     Posted: 22 Feb 2008 at 5:44am
Hi all,
 
in my report i have page header (a) and (b). On the last page of the report, page header (b) is to be suppressed if no data is found for display in GroupHeaderSection2.
 
Therefore I've tried it with the following script at 'suppress (no drill-down)':
 
if CStr({databasefield}) = "" and pagenumber=TotalPageCount Then true
else false;
 
What am I missing?
 
pls help
 
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 22 Feb 2008 at 8:00am
Try using this:
 
OnLastRecord
 
BTW, if you have an expression that evaluates to True or False, you don't need to use the If...Then construct.  For example, in your formula you could do just :
 
CStr({databasefield}) = "" and pagenumber =TotalPageCount
 
And get the same result.
 
-Dell
IP IP Logged
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