Page 1 of 1

How to protect group of lines in a page using TReport Class

Posted: Wed Dec 19, 2007 11:10 pm
by toyet
Hello,

Is there an easier way to protect group of lines in a page when printing?
Example:

##. My Name Here Info 1
Info 2
Info 3

##. My Other Name Info 1
Info 2
Info 3

Sometimes, Info 3 in 'My Other Name' gets separated to a new page.

Any insights would be very much appreciated.

Toyet

Posted: Thu Dec 20, 2007 8:53 am
by James Bott
Possibly you could use the start group codeblock; oReport:bStartGroup. You would have to write a routine to skip forward in the database and count the number of items in the group, compare this to see if there are enough lines left on the page, then either do a page feed, or just continue printing. I will take some effort, but I think it can be done.

James