Information générale
Catégorie:
Gestionnaire de rapports & Rapports
I find it annoying that Group Headers don't repeat when only a Group Footer prints on a page, but I guess it's a feature, not a bug (g).
There isn't an obvious solution to this, but there is a workaround.
Add a field object to the bottom of your detail band that is the same size (height) as the group footer. Give it an expression of "PLACED HERE FOR WIDOW/ORPHAN CONTROL". Set its PrintWhen to have the following properties: Remove Line if Blank=Checked and Print Only When Expression is True: .F.
This way it will never print (and it'll never take up space), but every time a detail band comes around to print, VFP will check the ENTIRE DETAIL BAND HEIGHT (before it evaluates all the PrintWhen's and RemoveLine stuff) against how much room is left on the page and it'll therefore end up printing your last detail record on another page with the group footer if there is, in fact, not enough room at the bottom of the page.
Hope this helps...
(If this posts solves your problem, please click on the "Mark this message as the answer to the thread" hyperlink below... Thanks).
--Brad
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement