Format providers for richtexteditor

2 posts, 0 answers
  1. nisim
    nisim avatar
    1 posts
    Member since:
    Jul 2015

    Posted 24 Jul 2015 Link to this post


    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,



  2. Hristo
    Hristo avatar
    1470 posts

    Posted 28 Jul 2015 Link to this post

    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
Back to Top