TppMemo not wrapping
I am using a TppMemo to print a footer on my report. The problem is that the
text is longer than one line and sometimes it does not wrap and therefore
runs off the page. It seems to happen inconsistently across operating
systems. In addition, when this does happen, if the report is printed for a
second time (without restarting the program) it prints fine. Here is a quick
rundown of the pertinent properties:
BottomOffset := 0
CharWrap := False
ForceJustifyLastLine := False
Stretch := False
TextAlignment := taLeftJustified
Have you heard of this before? Thanks.
text is longer than one line and sometimes it does not wrap and therefore
runs off the page. It seems to happen inconsistently across operating
systems. In addition, when this does happen, if the report is printed for a
second time (without restarting the program) it prints fine. Here is a quick
rundown of the pertinent properties:
BottomOffset := 0
CharWrap := False
ForceJustifyLastLine := False
Stretch := False
TextAlignment := taLeftJustified
Have you heard of this before? Thanks.
This discussion has been closed.
Comments
So you have a static height memo. The reason that you may get different
behavior, is that the printer driver is used to figure out the text width
and height in order for it to calculate how to wrap wthin the space that is
is given on the page. RB renders using the printer canvas to get the text
width and text height. If the text height returned won't fit on the second
line in the memo, then perhaps resize the memo height so that it is taller.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com