Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Multi-Section Report with Variable Records for each Sect
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00425108
Message ID:
00425195
Vues:
27
Elgin,

i use two and a half approaches for this kind of problem, depending on the current mood:

1.) add a GroupInfo column to your report cursor, store the info about the logical group into it, group the report by this column and set 'break page if there is less than 1 inch left on the current page'. This is easy, but it does not break perfectly, just close to nice.

2.) I know how many lines fit on a page (config table). Then i count groupwise what group fits on one page, set the desired pagenumber in the GroupBy column and group by that column, breaking pages on group changes.

2.b) If i have very good mood and the customer is nice to me, i check against the lines_per_page info if all lines fit on one page. If not, i check if there are only some more lines than would fit. If so, i use Lines_per_compressed_Page as line counter and use a different report that uses a slightly smaller detail band. So i never have a report with only some lines on the last page. This requires more work as two reports have to be maintained and it is good only for few-pages reports.

Joerg Karpa
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform