This is a migrated thread and some comments may be shown as answers.

RTF Data Export to plain text

3 Answers 134 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Ruchi
Top achievements
Rank 1
Ruchi asked on 12 Sep 2013, 10:10 AM

Hello Team,

I am working on one Telerik silverlight application, Where i have some data in RTF formate and need to export the data to the plain text.
code is as below:

 Telerik.Windows.Controls.RadRichTextBox richText = new Telerik.Windows.Controls.RadRichTextBox();
  richText.Document =
new Telerik.Windows.Documents.FormatProviders.Rtf.RtfFormatProvider().Import(value.ToString());
  CObject =
new Telerik.Windows.Documents.FormatProviders.Txt.TxtFormatProvider().Export(richText.Document);

It works perfect when i am working on local, but after deploying the application on server. it displays RTF data as it is instead of exporting it to the plain text.

can any one please guide me for the same?

Thanks and Regards,
Ruchi Patel

3 Answers, 1 is accepted

Sort by
0
Ruchi
Top achievements
Rank 1
answered on 17 Sep 2013, 06:06 AM
Helllo,

I got the solution, I need to place all the Dlls related to "Telerik.Windows.Documents".

Thank and regards,
Ruchi Patel
0
Accepted
Petya
Telerik team
answered on 17 Sep 2013, 08:56 AM
Hi Ruchi Patel,

Please note that we do not recommend using the assemblies from the RadControls for Silverlight suite for server-side document conversion. Instead, I'd suggest you use the WPF assemblies and invoke the converting functionality using services from the Silverlight client. 

Let us know if you have further questions or comments.

Regards,
Petya
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Ruchi
Top achievements
Rank 1
answered on 18 Sep 2013, 06:38 AM
Hello Petya,

Thank you for the guidance.

Thanks and Regards,
Ruchi Patel


Tags
RichTextBox
Asked by
Ruchi
Top achievements
Rank 1
Answers by
Ruchi
Top achievements
Rank 1
Petya
Telerik team
Share this question
or