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

Format providers for richtexteditor

1 Answer 99 Views
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 1
nisim asked on 24 Jul 2015, 09:39 AM


I'm currently working on a project which uses the Telerik libraries for winforms, and richtexteditor in particular

I've noticed a few things after dealing with a problem I had with the format providers:

1.There are 3 types of FormatProviders libraries:




I work with richtexteditor so the second one won't apply. But, when I tried to use the 3rd one it gave me an error when trying to export/import:

The best overload method match for 'Telerik.Windows.Documents.Common.FormatProviders.FormatProviderBase<Telerik.Windows.Documents.Flow.Model.RadFlowDocument>.Export(Telerik.Windows.Documents.Flow.Model.RadFlowDocument, System.IO.Stream) has some invalid arguments'


I decided to work with the first library for Format Provider. However, when trying to export .docx documents with pictures or hyperlinkes in them, it throws this exception:

 'System.Collections.Generic.KeyNotFoundException' occured in mscorlib.dll'

Additional information: The given key was not present in the dictionary


 Any solution?


Thank you,



1 Answer, 1 is accepted

Sort by
Telerik team
answered on 28 Jul 2015, 11:34 AM
Hi Nisim,

Thank you for writing.

In order to take advantage of the exporting functionalities, you would need to use the following namespace: Telerik.WinForms.Documents.FormatProviders.

I am sending you attached an example project loading a .docx file in RadRichTextEditor and exporting it as HTML. Using the same approach you could import and export documents in the other formats as well. Please also check the following documentation article: RadRichTextEditor | Import\Export.

I hope this helps. Should you have further questions please do not hesitate to write back.

Hristo Merdjanov
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Asked by
Top achievements
Rank 1
Answers by
Telerik team
Share this question