How to get the 'Wrapped' lines from to TfrxMemo object

Hi,
Is there a way to get the Wrapped lines from to TfrxMemo object? I need to get the what fits in the first line and delete the rest.

In report builder I used this method and got back WrapedLines a stringlist of the lines the way it will be wrapped.



m: TppMemo;
r: TppRect;
lPrinter: TppPrinter;
ingLabel: TppLabel;
WrapedLines: TStringList;
charpos: Integer;

TppPlainText.WordWrap(m.Text, r, m.TextAlignment, false, m.Font, false, 0, m.TabStopPositions, lPrinter, charpos, WrapedLines);


thanks
Abe

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.