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

conditional header based on starting printing report footer 1

Status
Not open for further replies.

yrreiht

IS-IT--Management
Jun 16, 2005
4
FR
I'm quite new to Crystal Report and can not make the following work :

I have a page header and 3 report footers.
I want to get the page header on all pages
at the beginning of the document,
but I want to stop printing the page header
on the remaining pages as soon as I have started
to print the second report footer.

Any ideas, gurus ? ta

 
Create two formulas:

//{@true} to be placed in the report header:
whileprintingrecords;
booleanvar flag := true;

//{@false} to be placed in the second report footer:
whileprintingrecords;
booleanvar flag := false;

Then go to the section expert->page header->suppress->x+2 and enter:

whileprintingrecords;
booleanvar flag;
flag = false; //notice there is no colon

This should work if you have a new page before on the second report footer. Otherwise, it would suppress the page header starting on the first new page after the start of the second report footer.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top