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

How to serialize Span class to binary or xml ?

2 Answers 21 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Ajita
Top achievements
Rank 1
Ajita asked on 21 Nov 2013, 05:43 AM
Hi,

I am trying to serialize Span Class Collection object to XMl, Binary and JSON format but while implementing this, StyleDefinition Class which is the property of the Span Class class and having nested structure ( same class type variable inside the class ) not allow to perform the serialization process.

I had tried also JSON serialization which allow to skip looping structure but that also not allow to serialize Span collection object.

so is there any way to serialize Span collection object to any serialization type so I will save this object as file on my system. ?




Thanks & Regards
Ajita


2 Answers, 1 is accepted

Sort by
0
Mihail
Telerik team
answered on 25 Nov 2013, 04:29 PM
Hello Ajita,

Yes you can export the document to XAML, Docx, RTF, PDF, HTML and Text formats using our format providers.
More on that subject you can read in this help article: http://www.telerik.com/help/silverlight/radrichtextbox-features-import-export.html.

If you have further questions feel free to contact us again.

Regards,
Mihail
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
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
Ajita
Top achievements
Rank 1
answered on 27 Nov 2013, 05:15 AM
HI Mihail ,

I am not trying to export document, i am trying to serialize Span class to XML, binary or JSON format but, Span class having StyleDefinition type property and this (StyleDefinition) class is in nested structure (with same type property inside the class). Because of this region , serialization methods not allows to serialize.

So is there any way to serialize Span class to XML, Binary or JSON format?



Thanks

Ajita
Tags
RichTextBox
Asked by
Ajita
Top achievements
Rank 1
Answers by
Mihail
Telerik team
Ajita
Top achievements
Rank 1
Share this question
or