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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Page Header once per group

Status
Not open for further replies.

dev1212

Programmer
May 11, 2010
117
US
Hi,

I have a group on {ACCNT_NMBR} field. There is a page header which i want to display just once per account number. And want to suppress this page header on last page.

How to do that..? Any help would be greatly appreciated.

Thanks
 
Use a suppression formula on the page header like this:

pagenumber = totalpagecount or
{table.acctnumber} = previous({table.acctnumber})

-LB
 
Thanks LB. It works fine for all but first page. The page header displays once every group for all other groups but not for first group. Page header is suppressed for first {ACCNT_NMBR} group.
 
Probably because previous({table.acctnumber}) is a null

try

pagenumber = totalpagecount or
(not onfirstrecord and {table.acctnumber} = previous({table.acctnumber}))

Ian


 
I see the same behavior, i.e., page header displays once every group for all other groups but not for first group. Page header is suppressed for first {ACCNT_NMBR} group.
 
Remove the check mark from the box and just leave the conditional formula in the x+2 formula area.

-LB
 
There is no check mark on the box, i unchecked it already when i was writing this formula, its just the conditional formula in x+2 formula area.
 
One more point i would like to say, There is a report header that is of size one page followed by this page header if that helps.

RH - One page length
PH - Just headers text objects
GH - Account number details


 
Please post the exact formula you are using in the section expert->page header->x+2 area. I tested my formula and it works.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top