Crystal Reports: How to completely suppress main report page footer when subreport is displayed?
Posted on 2007-11-17
I am new to experts exchange and crystal reports - and appreciate your help! :)
I have reviewed the Crystal Reports solutions, but didn't find anything that (exactly) addresses my issue.
I am currently developing a VB.NET project using the 1.1 .NET runtime and Visual Studio 2003. I am using the built-in Crystal reports designer with VS 2003, and have created two "main" reports.
***The client issue: my client would like both "main reports" combined within one report viewer, so they can print both reports at once.
***The short questions: How do I completely hide the main report page footer when a sub-report is displayed? (The suppress option doesn't remove the space for the footer itself.) Or is there a better way to combine two "main reports" using one report viewer?
My solution so far: After reviewing the Crystal Reports documentation, it seems like the solution is to link both reports - essentially making one report a subreport to the other.
I placed the subreport in the "Report Footer" section of the main report, and linked the appropriate fields between both reports. So far, so good :)
The problem which keeps me up at night - and in large amounts of pain:
The main report contains a two page footers (where I conditionally suppress one or the other, depending on which page is being printed). I have not been able to hide the page footers completely when the subreport is displayed. (Unless of course, I suppress the main report page footer completely - which I do not want to do.) Meaning, the SPACE for the footer remains, even though I have suppressed the text. I suspect I need to specify "hide" somewhere, but haven't been able to find that option for a page footer.
Suppressing the page footer does NOT remove the space reserved for the footer. At least, I have been unsuccessful at trying to remove the extra space.
I've tried suppressing the footer, suppressing blank sections - just about every option that made sense - but I have yet to find the right one.
Any help would be appreciated. THANKS!