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
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