We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Open a rtf file

Hello from france
how can i open a rtf file in an edit control without the rtf code ?
Thanks


1 Reply

FS Fathima Shalini P Syncfusion Team March 2, 2009 12:11 PM UTC

Hi Gerald,

Thank you for your interest in Syncfusion Products.

Currently we do not provide direct support to load the RTF file to Edit control. We have filed a feature request for this. As a workaround, we can load the encoded RTF file using the richtextbox controller. After loading the RTF text in RichTextBox, we can assign it to the text of the Edit control.

Kindly look into the code snippet and the sample provided below:


this.richtextbox.LoadFile("..//..//file.rtf");
this.editControl1.InsertText(1, 1, this.richtextbox.Text);


http://files.syncfusion.com/support/Edit.Windows/7.1.0.21/F79824/main.htm

Please let me know if any concerns.

Regards,
Fathima




Loader.
Live Chat Icon For mobile
Up arrow icon