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

Supressing Page header when Graph appears

Status
Not open for further replies.

lissa1974

Technical User
Mar 2, 2006
26
GB
Hi there, using SQL and Crystal 2008. I have a page header that has title for the columns in the report. This is all fine. However, the fist page on the first group is a graph for that group. I don't want the page header titles to show on a report, just the data pages. How can I supress the page header section if there is a graph on the page?

Thanks
 
If you have the group header sections with graphs formatted to new page before and after, you can use formulas like this:

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

//{@false} to be placed in the detail section and suppressed:
whileprintingrecords;
booleanvar flag := false;

Then format the page header section to suppress using this formula:
whileprintingrecords;
booleanvar flag;
flag = true; //note no colon

-LB
 
Hi there, thanks for your response. it doesn't quite work as you say to insert the 2nd formula into the details section. I haven't actually any data in the details section, as I have multiple groups showing info below the first group, and those groups show the data instead of the details section. So basically I want the titles to appear on all pages other than a graph page. Currently it looks like this....

Page Header
Page header 1 *With titles*
Group header - Graph
2nd group date
3rd group date
4th group data etc...

So I want page header 1 to appear on all pages except the 1st page in each group.

Thanks for your continued help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top