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

Can't save or open document

2 Answers 44 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Seb
Top achievements
Rank 1
Seb asked on 19 Apr 2013, 09:19 AM
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 Answers, 1 is accepted

Sort by
0
Petya
Telerik team
answered on 22 Apr 2013, 01:37 PM
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.

0
Seb
Top achievements
Rank 1
answered on 22 Apr 2013, 02:07 PM
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.
Tags
RichTextBox
Asked by
Seb
Top achievements
Rank 1
Answers by
Petya
Telerik team
Seb
Top achievements
Rank 1
Share this question
or