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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Open a rtf file

Thread ID:

Created:

Updated:

Platform:

Replies:

79824 Feb 27,2009 12:07 PM UTC Mar 2,2009 12:11 PM UTC WinForms 1
loading
Tags: EditControl
Gerald ANDREZ
Asked On February 27, 2009 12:07 PM UTC

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


Fathima Shalini P [Syncfusion]
Replied On 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




CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;