FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour How to protect group of lines in a page using TReport Class
Posts: 39
Joined: Thu Apr 05, 2007 12:52 AM
How to protect group of lines in a page using TReport Class
Posted: 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

Thanks,

Toyet Amores

-----------------------------------------------------------------------

xHarbour/Fivewin/Harbour/BCC582/DBMS:Oracle/MySQL

-----------------------------------------------------------------------
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
How to protect group of lines in a page using TReport Class
Posted: Thu Dec 20, 2007 08: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

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10

Continue the discussion