Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Conditional title page on a report
Message
From
23/10/2001 17:06:53
 
 
To
23/10/2001 16:24:26
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00572248
Message ID:
00572331
Views:
33
Dragan,
While this isn't the perfect solution (prints after page header), it's the best solution yet.

Thanks for the tip.

>>I'm trying to print out a title page for a report that only prints when a logical expression is true. Otherwise, no title page prints (and no blank page get's kicked out!).
>>
>>At first, I tried to modify the report to conditionally print the title page, but I couldn't get the page to break after title text printed (all text contained in single memo field/variable). If I changed the report to page break at design time, it forced a blank title page at runtime (not what the cook intended and defeats the whole purpose). Without the page break at design time, the report started printing at the end of the title text. Adding a variable amount of CR&LF didn't do it either. There is something very strange about the report writer & title page...
>>
>>Then I have been trying to hack the FRX to add necessary rows to the frx at runtime, but still am not having any success.
>>
>>Anybody out there find a better solution, (still using the VFP report generator) and/or give me some tips and tricks to solve the problem?
>
>My usual trick (though I haven't done too many Fox reports recently) is to group on anything that fits, and have the group print on a new page. The group expression can be anything, even bof(), eof(), UDF or a report variable. The report variables are specially cute for this sort of manipulation, because they can be manipulated in code called from any band's OnEntry function.
Timothy D. Yeaney
MCSD, Charter Member
President, PAFOX (Potomac Area Fox User Group)
mailto:tim@eagleeyeinc.com
Vice President
Eagle Eye Publishers, Inc
Broaden Your Vision, Sharpen Your Focus
Previous
Reply
Map
View

Click here to load this message in the networking platform