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!

Display a page header for a specific detailed section 2

Status
Not open for further replies.

MJD500

Technical User
Nov 9, 2001
33
0
0
CA
Help Please!!

I have 2 page header sections with a jpg file and 4 detailed sections. I want to display Page header A on top of the pages when detailed sections a,b and c are on the page. But when detailed sections d and e are displayed on the page I want to show Page header B.... Detailed Section d can be up to 15 pages for example. How can I tell Crystal to display Page Header B for each page that has Detailed Section d and e?

 
Without knowing the layout, this is tricky...

Consider using a new page before on the D detail.

Now place a variable in a formula into the C section that would be used by the next page header suppression analysis to display the PH B.

Now once you leave the D detail, you'd want to reset it (create a blank E detail if you don't have one).

At the end of the C detail:

whileprintingrecords;
booleanvar ShowPHB:= true;

In the PH B Suppression:
whileprintingrecords;
booleanvar ShowPHB;
not(ShowPHB)

At the end of the D detail:
whileprintingrecords;
booleanvar ShowPHB:= False;

That should do it.

-k kai@informeddatadecisions.com
 
Thank you very much. It worked!!!! :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top