We help IT Professionals succeed at work.

suppress page header+crystal report bundled vs 2008+window application

MKItani
MKItani used Ask the Experts™
on
I have a report as follows:

page header

group header

detail

groupfooter
Subreport

how i can suppress the page header before to call subReport.
regards,

Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
WillOwner

Commented:
right click section vertical band and supress or hide
Senior Consultant
Most Valuable Expert 2011
Top Expert 2013
Commented:
Is the subreport in the group footer?
If so, try this idea

In the report header a a formula
WhilePrintingRecords;
Global BooleanVar SuppressPageHeader;
SuppressPageHeader := False;
""


Add  2 more group footer sections
Right clic the group footer in the left margin
Click INSERT SECTION BELOW

Drag GFB up so it becomes GFA
In GFA add a formula
WhilePrintingRecords;
Global BooleanVar SuppressPageHeader;
SuppressPageHeader := True;
""

Insert a copy of the formula from the report header into GFC

Right click the PAGE HEADER in the left mrgin
Click SECTION EXPERT
Clic the formula button to the right of SUPPRESS
WhilePrintingRecords;
Global BooleanVar SuppressPageHeader;
SuppressPageHeader

mlmcc

Author

Commented:
ossum as usual mlmcc and it is work fine
 but why i need to insert another section in the group footer
Mike McCrackenSenior Consultant
Most Valuable Expert 2011
Top Expert 2013

Commented:
It may work if you just put the formula in the group footer with the subreport however, you can't control which evaluates first the formula or the subreport.  By adding the sections you have control since GFA will be done before GFB is started.

It is more a personal preference and the way I do it than necessarily required by Crystal.  I have had times when it seems the subreport executes first so you don't get the suppression.

mlmcc