Registriert seit: 21. Apr 2008
Ort: Europa
145 Beiträge
Delphi 10.4 Sydney
|
Re: RTF to plain text (without formats)
24. Apr 2008, 13:23
Diese Funktion mal probieren:
Delphi-Quellcode:
function RTF2PlainText(s: Integer): string;
var
RichEdit: TRichEdit;
begin
RichEdit := TRichEdit.CreateParented(HWND(-3));
try
with RichEdit do
begin
SelectAll;
SelText := s;
Result := Text;
end;
finally
RichEdit.Free;
end;
end;
|