Read this article:
http://msdn2.microsoft.com/en-us/library/ms965281.aspx#vfp9inactn_topic5Search for "Your Listener: Pagination" and that's the section on how to do exactly what you want.
>I am writing a report with VFP report writer where keeping the groups together (no page break) is very important. Th number of records in each group varies from 2 to 20-30 lines. I'd like to determine the size of the next group at the end of the current group, and then force a page break or not.
>
>I think I have it figured out with the exception of forcing the page break.
>Any ideas?
>
>Thanks,
>Larry Morelli