Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multi-Section Report with Variable Records for each Sect
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00425108
Message ID:
00426649
Views:
36
Joerg,

Thanks for all those suggestions. I am trying something similar to your idea #1 and that seems to be doing fine. If the client is not happy with that, I may re-examine your other ideas.

Thanks
Elgin

>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
Elgin Rogers
Epic Solutions
www.epicsolutions.net
Previous
Reply
Map
View

Click here to load this message in the networking platform