Thanks for you advice!
Won't this always suppress the page header on the page that shows the subreport in the report footer?
Say there are 30 records and not 20 as I mentioned above, and the second page shows the last ten records. In this case, the subreport could fit on the page and in this case, I wouldn't want to suppress the page header.
I'll try this tomorrow just to make sure. But in any case, the approach seems promising, even if not the details.
I'll keep you posted.
shovavnik
Main Topics
Browse All Topics





by: frodomanPosted on 2005-09-14 at 10:47:20ID: 14883005
I would take a different approach. Create a new report footer *above* your subreports. Now create this formula in your report header:
shared numberVar SuppressHeader := 0;
In the new report footer section create this formula (make sure it's above the subreports!):
shared numberVar SuppressHeader := 1;
Now use this formula to conditionally suppress the page header section:
(shared numberVar SuppressHeader = 1)
This will give the results you want but it relies on setting the variable to a specific value before the subreports are called rather than trying to figure out how many records you have on a page.
frodoman