Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Conditional page footer on summary page
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00925387
Message ID:
00925550
Views:
18
Yes, you will definitely get the blank page. Sorry, I didn't realize that you thought this technique would suppress it. I assumed that there were other things on this page that you *did* want to print even if just dealing with one record. Otherwise why not find a way to just omit the page altogether?

As far as why the page still prints: The problem is not the little areas of space. It's the fact that you ask for a summary page at all. If there is a summary page requested, Fox is going to print one even if it is blank, period, doesn't matter how many lines you tell to remove if blank <s>.

As far as not needing to set the var back to .f.... don't be too sure. I would do it, even if you don't see the need, because the circumstances under which it might be re-evaluated (so if you paged back and then forward to summary again the field might actually show up) are just ... too weird <s>.

***BUT***

If omitting the whole summary page, rather than the expressions on the page, is really what you're after, you might not need to worry about all the print whens and the vars at all <s>.

There are several ways to omit this page.

1) If it is a single record and you're not printing summary, perhaps you know how many pages the report should be. In that case you can just use a RANGE clause for 1, n-1, so that you omit that last page.

2) Print the summary as a separate report immediately following the main report (when you want it). This works best in VFP 9 because you can NOPAGEEJECT and see both together in Preview, of course <s>.

3) Hack the FRX and set the summary band's attributes not to be on a separate page when it's just one page. with this solution you still need the vars and Print Whens.

4) Always have the summary band be on same page rather than separate page (no FRX hacking). With this solution you need to find a way to force a page break -- you probably already know 10 ways to do that <g>.

>L<
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform