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.
Unfortunately, activation email could not send to your email. Please try again.

Open a rtf file

Thread ID:

Created:

Updated:

Platform:

Replies:

79824 Feb 27,2009 07:07 AM Mar 2,2009 07:11 AM Windows Forms 1
loading
Tags: EditControl
Gerald ANDREZ
Asked On February 27, 2009 07:07 AM

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 07:11 AM

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.

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.

;