
I installed the new Q1 for 2011 and tried the Telerik Editor example.
Works fine, but... when I try to open or save documents as .docx (or as richtextformat) I get a messagebox: "Unsupported File format".
Office 2010 (Norwegian) is installed.
10 Answers, 1 is accepted
Could you please check if you have added a reference to the following assembly:
Telerik.Windows.Documents.FormatProviders.OpenXml
For easier extensibility and separation of concerns, RadRichTextBox uses format providers to deal with the import and export of the documents. Here is a list of the currently available format providers and the assemblies they are included in:
- TxtFormatProvider (plain text) – Telerik.Windows.Documents;
- DocxFormatProvider - Telerik.Windows.Documents.FormatProviders.OpenXml;
- HtmlFormatProvider - Telerik.Windows.Documents.FormatProviders.Html;
- XamlFormatProvider - Telerik.Windows.Documents.FormatProviders.Xaml;
- RtfFormatProvider - Telerik.Windows.Documents.FormatProviders.Rtf;
- PdfFormatProvider - Telerik.Windows.Documents.FormatProviders.Pdf.
If you have other questions, do not hesitate to contact us again.
All the best,
Iva
the Telerik team


Telerik.Windows.Documents.FormatProviders.OpenXml
I'have added nothing at all. I only tried to run the sample app which is included in the new Q1 2011.
I checked which references are included.
Look here, these references are added to the project:
- TxtFormatProvider (plain text) – Telerik.Windows.Documents;
- DocxFormatProvider - Telerik.Windows.Documents.FormatProviders.OpenXml;
- HtmlFormatProvider - Telerik.Windows.Documents.FormatProviders.Html;
- XamlFormatProvider - Telerik.Windows.Documents.FormatProviders.Xaml;
- RtfFormatProvider - Telerik.Windows.Documents.FormatProviders.Rtf;
- PdfFormatProvider - Telerik.Windows.Documents.FormatProviders.Pdf.
You are right, there is a issue with some assemblies missing in QSF Examples solution. As a simple workaround you could copy
- Telerik.Windows.Documents.FormatProviders.OpenXml.dll
- Telerik.Windows.Documents.FormatProviders.Rtf.dll
Thank for your cooperation and sorry for the inconvenience.
Greetings,
Boby
the Telerik team

I am creating my own application, I have copied the code from RTF page example, and added all the required references. But still I can only save in 'txt' format, and all other formats are popping an "Unsupported File format" messagebox.
(I have checked if the dlls (Telerik.Windows.Documents.FormatProviders. *****.dll) are being copied to my output folder, and they all exist there). Am I missing something?
thank you,
Ralph Bou Raad.
All format providers are loaded by MEF. If you see anything specific that can interfere with it, it's probably the cause. If you can't solve the problem, please get back to us with a demo project so we can further investigate the issue.
All the best,Ivailo
the Telerik team

By default when trying to resolve its parts MEF is looking in the assemblies present in the directory when the application is running. Currently you cannot change this behavior. However for the next release in a few weeks we will be providing more control over the way MEF is working.
If you would like, you can open a support ticket and elaborate a bit more on your scenario so we could help you further.
Alex
the Telerik team

We are not sure what exactly your problem is. All format providers are loaded by MEF, this may cause problems if the format providers' assemblies are not in the application directory. Could you please elaborate more on your scenario? Are you experiencing issues with QSF or with another application?
Regards,
Boby
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>