Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Last page must have detail band
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00918901
Message ID:
00920025
Vues:
15
>You can't specifically tell it to always include one detail band on the last page. One work-around is to change the height of the detail band so it is as tall as you need for the detail + the height of the group footer. At the very bottom of the detail band, add a horizontal line, change the print when logic to ".f.", mark it as "remove line when blank".
>
>What this will do is always go to a new page if the detail and the group footer won't fit. The dummy line is used to trick the report writer into getting rid of the extra space in the detail band. The drawback of this solution is that EVERY page will end the details with extra room because it thinks it needs the extra space.
>
>Cathy


Thanks, Cathy.
This method is the better the height of the footer is smaller.

Another way could be introducing one more group with group expression
mod(recno(),<number of detail records+1>)>0
and making it start a new page. Insead of the recno() one can implement a line counter. A counter whould count ALL lines which appear on a page. But the use of such method is limited.

Since, in my report, cases of a dangling footer are rare i've decided to include in the print dialog form a spinner where the user can set the top indent of the report and reprint when necessary.
All the best.
Kamil
A moment of silence is our cosmic reset button.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform