Home End User

Brake in a Memo

edited March 2003 in End User
Is there any easy way to make a pagebrake depending on a line in a memo?

If a memo is long and holds a lotr aof sentences, then it would be good, to
tell the report engine, to brake after an end of a complete sentence. MEans
if the follwing Chars are at the end of the line . ! ?

Actualy i can only brake with in a group xxx inches before end of the page.


chris

Comments

  • edited March 2003
    This is not natively supported in the memo control nor the rich text
    control. What I would do is build the memo contents on the BeforePrint event
    of the detail band. This way you can use multiple memo controls in the
    detail band. They would have to be created before the report executes so
    that they participate in the report engine's caching footprint. Then set
    their visibility basedon how many page break characters you find when you
    preprocess the memo data before the band prints. The BeforePrint event of
    the band is the best palce to set the visiblilty of the controls that are
    going to print in the band. Then you can set the memo contents in each
    memo's OnPrint event. To get a page break, try to set the
    Detailband.OutOfSpace property to true when a memo is going to print. You'll
    have to have boolean variable to make sure you only set this once for each
    memo, as the OnPrint is going to fire once on the page it tries to print on
    below the memo above it and then again on the next page after you set
    OutOfSpace to true. The first memo to print shouldn't try ot force a page
    break.

    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.