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

Way to determine beginning of next page

Status
Not open for further replies.

xcmuchip

Programmer
May 31, 2001
70
I am using my group headers as page headers to eliminate white space. My group headers have the box checked to repeat group header on each page. My problem is that my headers print when the field changes (knowing that is how they work). I don't want them to print when the field changes. I would like my group headers to act like page headers. Is there a way? Please help. Using CR8.

TIA
 
Hi
I had a similar problem, I'm not sure if it applies but this is what I've done:
1. Create a formula, 'StorePage':
whileprintingrecords;
numbervar iPage;
iPage:=pagenumber;
and put it in details area
2. Create another formula, 'StorePage1':
whileprintingrecords;
numbervar iPage1;
iPage1:=pagenumber;
and put it in the group footer
3. Add this formula to page header ('Page_New'):
whileprintingrecords;
numbervar iPage;
numbervar iPage1;
booleanvar bNewPage;
bNewPage:=(iPage<iPage1);
'if it doesn't work, print and check the pattern
'iPage, iPage1, PageNumber in order to identify the
'beginning of a new page
The variable bNewPage should indicate the beginning of a new page. You can use it to suppress/show group headers
Marc R - programmer
 
Thanks for your suggestion. I tried it and my page fields are always the same.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top