Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Suppress a Pagebreak on nearly empty Group Headers ?
Message
From
13/08/2003 13:31:45
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
How to Suppress a Pagebreak on nearly empty Group Headers ?
Miscellaneous
Thread ID:
00819859
Message ID:
00819859
Views:
67
Hi,
I am busy porting part of an insurance application from FPW 2.6 to VFP6, SP5 (VFP8 to tested soon. Please bear with me, even if the text is a bit long...

In this application there are lots of reports which are all build using the same schema:
Every report is working only against a single record, and lots of information is moved prior to calling the report into a very large 2-dimensional array. In the first column of each row is the text to be printed, in the second column is a flag, which decides, if the control / first column is to be printed.

Every line is marked with "supress line if line is empty", with about 200 lines or report (the largest one) with 1 to 5 control on each line.

Each report is grouped into 3 to 12 groups, and most of controls/lines are supressed at printing time.

In VFP6 Sp5 I get a page break, if the remaining part of the page is not large enough to fit the next group in, but that area seems to be calculated on the basis of all the "potential" lines in the group (including the lines which will be supressed in the printout, because they are empty!).

In FPW I didn’t have this behaviour:
Let’s say the previous group stops about 3 / 4 down from the top of the page: There is space for at least 7 more lines.
The next group has 10 lines, but only 1 line will be printed from this group, since 9 lines are to be suppressed.
In FPW the 1 line will be printed on the same page (and the next group will be started, if it fits into the remaining space, still on the same page). In VFP this single line always is printed on the next page (even if there is no other information after this one line!)

On some reports I was able to break the larger groupings into many smaller ones, forcing the evaluation for each group to result into smaller area: this works, but I run the risk of a page break between the smaller groupings belonging to the same "old" grouping, if all lines of the "old" group just happen to be marked for printing.

This is not intended, since these "old" groupings were parcelled out after topics which belong to the same kind of information:

Adress information
Personal data of the customer
Specific data for the car to be insured
Data about the type of insurance
Small print...

And so on – these blocks were meant to be always printed on the same page.

Now I have a group of only 4 lines, which are meant to be always printed together: and just 1 line is filled in my example data, reslting in a last page of only 1 line. This group breaks on 2 pages, if all lines are to be printed and each line is in it’s own group, (not desired), but breaks also if all 4 lines are in 1 group and only one line is meant to be printed (also not desired).

Please HELP!

tia

thomas
Next
Reply
Map
View

Click here to load this message in the networking platform