Reputation: 626
Good day everyone.
I'm running Crystal Reports 9.
I have a report listing a bunch of records, and then a sub report containing only a graph. I would like to suppress the page header of the main report, for the page where the sub-report (graph) is shown.
I can't seem to be able to think up a formula to test for the presence of the graph / sub-report to suppress the page header in the main report with.
Any advice is appreciated.
Upvotes: 4
Views: 24573
Reputation: 101
In the Section Expert, put this as a formula for "Suppress (No Drill-Down)" under the page header that you want to hide:
whileprintingrecords;
global booleanvar no_header;
Then on the footer section where your subreport was embedded, put this formula for "Underlay Following Sections":
whileprintingrecords;
global booleanvar no_header:= true
That way, it will hide the page header that you don't want to appear when the sub report start.
I hope this will help...:)
Upvotes: 10
Reputation: 124
Step 1:
Create formula fPh
(just to identify "formula Page Heading") but you can give any name.
next({Command.PolicyID}) //which is any existing field from Main report
Save and Exit.
Step 2:
Go to Report, then Section Expert and select Page Header.
Click on formula button X-2 against Suppress under Common tab and type below
PageNumber > 1 and isnull({@fPh})
Save it and you are DONE... Enjoy
Upvotes: 0
Reputation:
I suggest:
ChartPage
) to determine which page the subreport will be displayed on.PageNumber={@ChartPage}
Upvotes: 0
Reputation: 6047
Hopefully the subreport/graph is in it's own section?
global booleanvar no_header := false;
global booleanvar no_header := true;
global booleanvar no_header := false;
global booleanvar no_header;
You may have to prefix all of those formulas with whileprintingrecords;
And you may have to tweak my suggestion a little but hopefully you get the idea?
Upvotes: 9