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

RichTextBox Import/Export to Word

3 Answers 112 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Raphael
Top achievements
Rank 1
Raphael asked on 25 Nov 2010, 05:29 PM
Hi everybody!

I'm using the richtextbox in my silverlight application to allow the users create word documents,but I have a problem.

I get export and save the document in my database on byte array format and when I recover it I need to open this in Word, but when I recover the text I'm only getting the text of the document and I need to recover the styles too.

How can I do this?

Thanks!

3 Answers, 1 is accepted

Sort by
0
Iva Toteva
Telerik team
answered on 26 Nov 2010, 09:13 AM
Hi Raphael,

We offer different format and data providers for importing and exporting rich document content. We support import from and export to Xaml, Docx and Html and export to Pdf.
If you are using Txt format or data provider, however, the text will get stripped of all formatting.
You can find more information on the usage of the providers in our help section. Check it out and let us know if you need further assistance.

All the best,
Iva
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Raphael
Top achievements
Rank 1
answered on 26 Nov 2010, 12:22 PM
Hi Iva,

I'm using DocxFormatProvider but when I'm trying to recover this information on VSTO I'm not getting the styles only the text.

Do you anything about it?

Thanks.
0
Ivailo Karamanolev
Telerik team
answered on 26 Nov 2010, 01:33 PM
Hello Raphael,

You can try opening the exported files with Microsoft Word. If the formatting appears there, then the problem lies outside RadRichTextBox's exporting API.
If you are still unable to fix the problem, I'd suggest reading through the help articles (also available online) on RadRichTextBox as they will most probably cast some insight as how the format providers and import/export API works.
If you believe this is a bug with DocxFormatProvider, please open a support ticket / bug report, preferably including a demo project which shows the undesired behavior.
Contact us if you need any further assistance.

Sincerely yours,
Ivailo
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
Tags
RichTextBox
Asked by
Raphael
Top achievements
Rank 1
Answers by
Iva Toteva
Telerik team
Raphael
Top achievements
Rank 1
Ivailo Karamanolev
Telerik team
Share this question
or