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
syhctlAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this 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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Crystal Reports

From novice to tech pro — start learning today.