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

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

Postby toyet » Wed Dec 19, 2007 11:10 pm

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
toyet
 
Posts: 39
Joined: Thu Apr 05, 2007 12:52 am
Location: Philippines

Postby James Bott » Thu Dec 20, 2007 8:53 am

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 93 guests