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
How to protect group of lines in a page using TReport Class
- James Bott
- Posts: 4654
- Joined: Fri Nov 18, 2005 4:52 pm
- Location: San Diego, California, USA
- Contact:
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
James