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

How to tell if DBMemo truncated

edited March 2004 in General
RB7.02 D6 End User Reporting with RAP

I have many dbMemos to print over top of a pre-printed form. If they
don't fit in their space then on some I need to not print and then
print the entire dbMemo on a different page (stretching at that
point), on others I need to print what I can and then print the
remainder on a different page (stretching).

What is my best approach? Have you an example?

Thanks,
Rick Matthews
Dartek Systems Inc.

Comments

  • edited March 2004
    Hi Rick,

    Once the DBMemo has loaded, you can access the ppDBMemos.Lines TStrings
    property to find out how many lines are in the memo. Using the text height,
    you can compare the approximate total height of the memo to the height of
    the TppDBMemo object on your report. If it looks like there will not be
    enough room, you can clear out the memo object and move the text to the next
    page.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.