Fit text into ppMemo
This was answered before, but I was not able to find it. I've looked at tech
tips also.
I have ppMemo with fixed height (does not stretch). I want to fit all the
text into it. Initial font size is 12. If the text doesn't fit I would like
to decrease font size until the whole text fits.
Any help is appreciated.
Zoran.
tips also.
I have ppMemo with fixed height (does not stretch). I want to fit all the
text into it. Initial font size is 12. If the text doesn't fit I would like
to decrease font size until the whole text fits.
Any help is appreciated.
Zoran.
This discussion has been closed.
Comments
Below is an example that may get you on the right track. This demo
calculates the space needed to fit all report components on one page. If
there is any overflow, the font of each object is then reduced by one. You
could do something similar, only just using the height of the memo as the
restricting value.
http://www.digital-metaphors.com/tips/ForceFontToOnePageReport.zip
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com