[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 927
  • Last Modified:

Crystal Suppress Page Header (B) if no data on page

Hi all,
Is there a way to suppress Page Header (b) from showing up at the top of the page if there is no data (group Footer1) on that page.  I have a chart in the Report Footer and if there is no data from group footer(1) would like to have only Page Header (a) show.
Thank you
0
syhctl
Asked:
syhctl
  • 3
  • 3
1 Solution
 
zephyr_hex (Megan)DeveloperCommented:
because crystal reports processes from the top down on the report, the only way i can think of to do this is to have some kind of formula that tests whether or not there will be a chart later on in the report.

what determines whether or not a chart is going to appear?
0
 
syhctlAuthor Commented:
There will always be a chart.  the supression is needed if there is not data from the Group Footer.  I then want the page with Pager Header (a) and the chart only.  Not Page Header (b)
0
 
mlmccCommented:
Can you determine if there will be data in the page footer?

mlmcc
0
Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

 
syhctlAuthor Commented:
There will most likely always be data there.  When the data is finished say ending on page 1, then no data from group on page 2 the chart is pushed to page2, the Group header row shows on the page2 even though there is no data there just the chart.
0
 
mlmccCommented:
Do you want the group header on all pages?

You could conditionally suppress based on a variable you set in the group footer.

mlmcc
0
 
syhctlAuthor Commented:
Could you please give me an exmple to use.
0
 
mlmccCommented:
In the report header add a formula
WhilePrintingRecords;
Global BooleanVar SuppressField := False;

In the group header
WhilePrintingRecords;
Global BooleanVar SuppressField;
 SuppressField := False;

IN the group footer
WhilePrintingRecords;
Global BooleanVar SuppressField;
 SuppressField := True;

In the suppression formula
WhilePrintingRecords;
Global BooleanVar SuppressField;
 SuppressField

mlmcc
0

Featured Post

[Webinar] Improve your customer journey

A positive customer journey is important in attracting and retaining business. To improve this experience, you can use Google Maps APIs to increase checkout conversions, boost user engagement, and optimize order fulfillment. Learn how in this webinar presented by Dito.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now