How to tell if DBMemo truncated
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.
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.
This discussion has been closed.
Comments
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.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com