Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > VCL

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 08-06-2012, 03:51 PM
larshgf larshgf is offline
Senior Member
 
Join Date: Jan 2001
Posts: 197
Default 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!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:24 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.