Can't save or open document

3 posts, 0 answers
  1. Seb
    Seb avatar
    10 posts
    Member since:
    Oct 2010

    Posted 19 Apr 2013 Link to this post

    Hi,

    I add the RadRichTextBox, with the ribbon UI, by the Telerik assistant. I let all the checkboxes checked by default to support all format. I add the assemblies referenced here http://www.telerik.com/help/silverlight/radrichtextbox-frequently-asked-questions.html#Assembly_References

    When i click to open a file, the OpenFileDialog doesn't display and when i try to save, the combo box for the file type is empty.

    Best regards
  2. Petya
    Admin
    Petya avatar
    975 posts

    Posted 22 Apr 2013 Link to this post

    Hello,

    Can you please try manually satisfying the imports as explained here:
    RadCompositionInitializer.Catalog = new TypeCatalog()
    {
        typeof(XamlFormatProvider),
        typeof(RtfFormatProvider),
        typeof(DocxFormatProvider),
        typeof(PdfFormatProvider),
        typeof(HtmlFormatProvider),
        typeof(TxtFormatProvider),
          //...
    };
    RadCompositionInitializer.SatisfyImports(new RadRichTextBox());
        
    InitializeComponent();

    Let us know how it goes.

    Regards,
    Petya
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
  4. Seb
    Seb avatar
    10 posts
    Member since:
    Oct 2010

    Posted 22 Apr 2013 Link to this post

    Hi,

    First of all I succeeded to solve my problem by looking at your link, I just have to uncheck the "reduce XAP size" checkbox in the silverlight properties of the project.
    For your information, when I first tried your code, I had an error
     "Cannot initialize type 'System.ComponentModel.Composition.Hosting.TypeCatalog' with a collection initializer because it does not implement 'System.Collections.IEnumerable"

    Best regards.
Back to Top