Frequently Asked Component Specific Questions
Options |
|
Display all FAQ items |
Displaying items 1 to 1 of 1, page 1 of 1
<< previous next >>

TMS FMX UI PackTTMSFMXRichEditor: Load RTF via a stream in TTMSFMXRichEditor
The TTMSFMXRichEditorRTFIO allows to load RTF from a file. It is also possible to directly load RTF from a stream though in the following way:
var
ss: TStringStream;
s: string;
begin
ss := TStringStream.Create;
try
ss.LoadFromStream(yourstream);
s := ss.DataString;
TMSFMXRichEditor.InsertAsRTF(s);
finally
ss.Free;
end;
end;