Thank you for your questions. Please, find below our answers:
- Could you try to clean your project and even deleting the bin and obj folders manually. Afterwards, verify that you have added all format provider references and all binaries point to same version. If these are in order, you shouldn't have a problem when importing supported documents. Judging from the behavior you have described, probably you have added a reference to only RTF and OpenXML format provider, but missed Telerik.Windows.Zip and the other format providers.
- You may be missing a reference to the Telerik.Windows.Documents.Proofing.Dictionaries.En-US.dll assembly which contains a built-in dictionary for english. You could find more information here.
- Data providers can import/export only data in the format they support. It is not possible to have databinding that loads XAML and exports docx or RTF with the default providers. What you can do is either to convert all the data in your database to RTF/Docx or use format providers to import and export the document instead of binding it.
What is more, docx is not a text-based format, so if you decide to use docx, the field type in the database should probably be image and not text.
Please, refer to this
forum post and see the attached RiaPersistingInOpenXML archive. It contains a project similar to your scenario which you could use as an example. The loading of the document happens in the GetDocumentFromDocx
method, which you could implement to use different format providers depending on the format of the data in the database.
I hope this information helps. Don't hesitate to contact us if you have other questions.
the Telerik team