Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: Suppression of Line if Empty Post Reply Post New Topic
Author Message
jsh8286
Groupie
Groupie
Avatar

Joined: 09 Mar 2012
Online Status: Offline
Posts: 46
Quote jsh8286 Replybullet Topic: Suppression of Line if Empty
    Posted: 08 May 2013 at 8:24am
Have a question regarding suppressing a row if the field in the row is empty.
 
Have a report sorted into two groups. Field A is in group A and Field B is in group B right below. There is not always a value in Field A but always B. The issue is if Field A is blank it creates a blank line so the report has spaces between the lines. For example:
 
This is Field A Line
           This is Field B 1st Line
 
           This is Field B 2nd Line
 
           This is Field B 3rd Line (and so on)
 
I want to eliminate the spaces between these Field B lines but can't seem to do so. Field A is obviously blank hence the gaps.
 
So in a perfect world the resulting layout should look like this:
 
This is Field A Line
          This is Field B 1st Line
          This is Field B 2nd Line
          This is Field B 3rd Line
 
No gaps.
 
Any suggestions?
 
Thanks in advance for any postings.
 
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 08 May 2013 at 8:32am

can't quite 'see' your set up here. Not sure if this is groupsections, a detail sections, seomething else...

In general,
go into the section expert
select the section you need to suppress (likely the detail section)
mark the 'suppress blank section' as true.
 
if you need it to be more sophisticated than that you can use the formula for consitional suppression int eh 'suppress (no drill down)' option.
IP IP Logged
nhopp4
Groupie
Groupie


Joined: 03 Oct 2012
Location: United States
Online Status: Offline
Posts: 62
Quote nhopp4 Replybullet Posted: 08 Jan 2014 at 3:31am
Goto Section Expert and click on the check by suppress and you can put in a formula to suppress a line if a field is blank.
 
if isnull({field}) then TRUE
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.031 seconds.