Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Probelm Suppress Page header after detail section A

Status
Not open for further replies.

davefm1

Programmer
Apr 18, 2001
78
US
HI All;

I have a report trhat consist of four sub reports.

The first two sub reports are in the Report Headers A,B.

The third sub report Ive taken the report field heading and added them to the main report page header and call in the sub report 3in detail section A.

I have added a new page after option to section A so Sub report 4 in detail section B of main report will come up on a new page I am try to sub press the page header form coming up on this page and on.

DOES ANY ONE kNOW HOW THIS CAN BE DONE.

THANKS
 
there are a couple of ways that might work.

1. if you have a reproducible page number that occurs after the detail(A) subreport...then simply put this formula in the conditional suppress of the pageheader

pagenumber = 3 //assuming that page 3 is the
//the page you want the header suppressed

2. If the page is variable and you don't know what the value would be then create a "SuppressFlag" as a shared variable between the Detail(A) subreport and the main report

in the main report header (suppressed) place this initialization formula

@initialization

WhilePrintingRecords;
shared numbervar SuppressFlag := 0;


in the Detail(A) subreport place this formula in the report footer (suppressed)

@SetSuppressFlag
WhilePrintingRecords;
shared numbervar SuppressFlag := 1;

then in the conditional suppress of the main report page header...you must decide if you want the page header permanently suppressed after detail(A) or not

if permanently suppressed then place the formula

WhilePrintingRecords;
shared numbervar SuppressFlag ;
SuppressFlag = 1;

if you require the pageheader only suppressed once then not suppressed thereafter use the following formula

WhilePrintingRecords;
shared numbervar SuppressFlag ;

if SuppressFlag = 1 then
(
SuppressFlag := 0;
True;
)
else
False;

that should work




Jim Broadbent
 
Hi Dave,
You might try this approach. Create a third detail section "C" and move your second subreport to this section. Use detail section "B" to set a flag to suppress printing of the page header and to skip to a new page.
Create a formula field to set "PrintPageHeadFlag" to "N".
Put this formula in detail section "B".
Conditionally print the Page Header section if PrintPageHeadFlan <> &quot;N&quot;.

Best of Luck to you.

bill
 
Thanks Bill
Your first way worked great.
I also add a second page header and user it for detail section B for page headerB.

Again thanks
Dave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top