Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Conditional page footer on summary page
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00925387
Message ID:
00925511
Vues:
11
>You're probably not at EOF() at that point when scoping, Barbara. So... off the top of my head:
>
>This is a situation where a report variable will probably be useful. Initialize to .F. and set its value to its own name, so it doesn't change during the report.
>
>Now use an expression such as the following for your OnEntry for Summary:
>
>execscript("rptInSummaryBand= .T.")
>
>... now your Print When is something like:
>
>(NOT rptInSummaryBand) OR addtl_conditions_you_have_for_condtl_printing.
>
>One more thing:
>
>If you are going to preview this report, you'll want to set another execscript to toggle it back to .F. in OnEntry for other bands, in case they page backwards after hitting the last page. If there's a _PAGETOTAL, forcing a prepass, you'll probably have to do the same thing. Because those events are going to be evaluated multiple times in VFP 8 preview, as they page back and forth, you have to make sure the value of the variable is *always* right.
>
>You could probably do the same thing with initializing and resetting the variable on group, but using the band OnEntry events will be a little more predictable.
>

I have good news and bad news. < g > First, the good news. Your solution works in getting rid of the page footer on the summary when I don't want it there. And surprisingly enough, I didn't need to set the report variable back to .F. in the other bands to get it to work properly in preview. Thanks for the idea!

Now, the bad news. I'm still getting a blank page when I don't want the summary page to print. Although I've checked "Remove line if blank" for all objects on this page, I suspect the problem is the small amounts of white space between lines and bands that's causing the page to print. My current plan is to use a text field with an unprintable character that stretches the full length of each band and has the same Print When condition, along with the "Remove line if blank". If that doesn't work, I'll just always print the summary page, which the client says he can live with if I can't get this to work properly.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform