Error When Loading Rtf-file in RichEdit
I have made a simple RTF-file via Word saving a document as an RTF-tekstfile.
I load this file in my simple application having a ReacEdit on a Form and when pressing a button I call...
RichEdit1.Clear;
RichEdit1.PlainText:= false;
RichEdit1.LoadFromFile('example.rtf');
When I press once the file is shown with all the special characters for bold, underline, colored text etc
When I press the second time the text is shown as it should be.
Cant figure out what is wrong here? Maybee Word2007 dont create a good rtf-file and thats why the text is not shown correctly before it is loaded for the second time?
Good Luck!
|