Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Keep Together and ppMemo's

edited December 2001 in General
I have a report which is basically a text file viewer. I am using a Memo in
the detail band. The text in the memo looks like this:


Line1
Line2
Line3

Line1
Line2
Line3

Line1
Line2
Line3

Line1
Line2
Line3
Line4
Line5

I need to keep each group of 3 lines together on each page. If there isn't
enough room on the page to display all 3 lines, then I need roll over to the
next page on the blank line. If there are more than 3 lines per group, it
doesn't make a difference where I break.

Keeptogether doesn't seem to work. I am assuming this is because each line
has a CRLF. How can I set this up?

Thanks.

Robert Griffin

Comments

  • edited December 2001

    1. Put a memo in the detail band.

    2. Set Memo.Stretch to True and Memo.KeepTogether to True.

    3. In the DetailBand.BeforePrint event, load the memo with the data.






    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited December 2001
    Hello Bob

    See comments below.

This discussion has been closed.