Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detail2 page prints even when there are no detail2 data
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01321887
Message ID:
01322328
Views:
25
If I remember correctly I also had these empty pages when printing without headers and footers. I think the flaw is that...
either, the designers had the presumption that there will always be at least one detail2 record;
or, the designers had the presumption that detail2 data are not meant to be printed on a new page;
or, the designers and testers have forgotten to check for this combination.

I might decide to redesign my own reporting. The trouble is that the detail2 data are actually pictures of varying size. Page 1 shows the textual data of a problem report, whereas screendumps (IF any) are to be printed starting on page 2. Suppose I'd tell my report to not print the pictures on a new page, a first *little* picture would print on page 1 and a first *big* picture would overflow to the next page. It gives an inconsistent, non-professional representation.

I have also tried to force the textual data to occupy all space on page 1, by creating one dummy object that absorbs all remaining white space, but somehow I did not succeed. Perhaps you know the trick to do this?


>IMO .. this is a flaw in the design of multiple detail bands. If you have headers and footers around the band, it always processes them, even if there aren't any details for that band. I haven't come up with a way to work around this yet. I'm sure there's some complex ReportListener concept that could do it, but I haven't had the time to figure it out.
>
>Cathy
>
>
>>Hi All,
>>
>>I already asked for help in thread #1319611, but so far to no avail. So I ask again.
>>
>>On a report I must show detail1 data on a new page and detail2 data on a next page. I succeed in printing detail1 data on a new page and detail2 data on a next page, but a detail2/next page is even generated if there are no detail2 data to print. It gives an empty page (apart from a header/footer).
>>
>>For this case I have created a zipfile. It can be downloaded here: http://hyp.viafox.nl/ut/testcase_emptypages.zip
>>
>>I have tried all combinations I could think of. Nothing helps, or it creates another issue. Help is very much appreciated.
Groet,
Peter de Valença

Constructive frustration is the breeding ground of genius.
If there’s no willingness to moderate for the sake of good debate, then I have no willingness to debate at all.
Let's develop superb standards that will end the holy wars.
"There are three types of people: Alphas and Betas", said the beta decisively.
If you find this message rude or offensive or stupid, please take a step away from the keyboard and try to think calmly about an eventual a possible alternative explanation of my message.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform