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

Post Reply
User avatar
toyet
Posts: 39
Joined: Thu Apr 05, 2007 12:52 am
Location: Philippines

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

Post 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
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Post 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
Post Reply