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

Open XML to SQL

3 Answers 102 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Mark Bourisaw
Top achievements
Rank 1
Mark Bourisaw asked on 23 Mar 2011, 05:11 PM
If I use the RichTextBox editor to have the user input text and format it, is it possible to output this in Open XML format to a SQL database?

What we want to do  is have the users input text and format it.  Save this to the database and then get the data from the database to assemble a document.  Has anyone done this?

3 Answers, 1 is accepted

Sort by
0
Mike
Telerik team
answered on 23 Mar 2011, 06:11 PM
Hi Mark Bourisaw,

This can be done using XamlDataProvider which can be bound to any data source at your will:
http://www.telerik.com/help/silverlight/radrichtextbox-features-data-providers.html

If you need to use explicitly Docx format, since it is stored in a binary form in the data base, there is no data-provider but you can still use DocxFormatProvider to load/store documents. You may also implement a wrapper class that provides more convinient bindable property like in this forum thread:

http://www.telerik.com/community/forums/silverlight/richtextbox/how-do-you-bind-richtextbox.aspx

Let us know if you need further assistance.

Regards,
Mike
the Telerik team
0
Mark Bourisaw
Top achievements
Rank 1
answered on 23 Mar 2011, 07:33 PM
What version of Silverlight is the DOCX provider supported in?  We are trying to create a sample project and do not see the DOCX provider?  The others are there HTML and document.
0
Iva Toteva
Telerik team
answered on 28 Mar 2011, 11:42 AM
Hi Mark Bourisaw,

The rich text box works for Silverlight 4. There is nothing specific about the format providers and Docx was one of the first format providers that were developed. It is included in the assembly Telerik.Windows.Documents.FormatProviders.OpenXml. Similarly, the HTML format provider is part of the Telerik.Windows.Documents.FormatProviders.Html assembly.
For general information on the assemblies you need to add references to in order to make use of the different features of RadRichTextBox, you can refer to the third post in this forum thread.

Greetings,
Iva
the Telerik team
Tags
RichTextBox
Asked by
Mark Bourisaw
Top achievements
Rank 1
Answers by
Mike
Telerik team
Mark Bourisaw
Top achievements
Rank 1
Iva Toteva
Telerik team
Share this question
or