Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unable to use EJECT
Message
 
 
To
27/03/2001 10:04:09
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00488680
Message ID:
00488989
Views:
12
>Nadya,
>thank you for your reply. I've read Cathy P. articles, but I couldn't find anything for me.
>I have several fields in my report group footer band. All of them are memofields. Last one I need to print all memolines at the same page. So I need to know how many free lines I have on this page and start this field on new page if I don't have enough room. I started with using EJECT, _plineno and
>PROW(), but it doesn't work at least in VFP 5.0.
>Thanks,
>Helen

Are the other bands always the same width? For example, if you print the whole page without group footer, does it always look the same, say, Page Title, Group Header, 40 details lines + 1 line in Footer? If the answer is yes and you know, how many records in each group (you can count them), you can tell approximatelly, how many free lines will be left on the last page of the group. Then you'll know, is it enough to print last memo or not. In the previous memo field you can put instead of name of your previous memo the function, say, DoesItFit()

DoesItFit will return MemoPrev+CRLF*Number+MemoLast.
You have to calculate Number of CRLF in order to either put both memos on the same page or put the last memo on the next page.

All of this is just an idea. See, if you can work it out.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform