begin
MyRichView.Style := RVStyle1;
OpenDialog1.DefaultExt:='rtf';
OpenDialog1.Filter:='RTF Document (*.rtf)|*.rtf';
if OpenDialog1.Execute then
begin
MyRichView.Clear;
MyRichView.LoadRTF(OpenDialog1.FileName);
MyRichView.Format;
end;
end;
This loads RTF file without font styles (like plain text):
The default property values are not optimal for RTF reading.
Unfortunately, they cannot be changed because of possible compatibility problems. Instead, optimal property values are assigned when the component is placed on a form at desigtime.
Assign
Sergey Tkachenko wrote: Thu May 22, 2025 9:22 pm
The default property values are not optimal for RTF reading.
Unfortunately, they cannot be changed because of possible compatibility problems. Instead, optimal property values are assigned when the component is placed on a form at desigtime.
Assign