How To Import DOC Files
Environment
Product Version | Product | Author |
---|---|---|
2023.3.1010 | RadRichTextEditor for WinForms | Dinko Krastev |
Description
An example demonstrating how import DOC file formats into RadRichTextEditor.
Solution
To load a .doc file format to our WinForms RichTextEditor control you need to follow the below steps.
- Add a reference to the Telerik.Windows.Documents.Flow.FormatProviders.Doc and Telerik.Windows.Documents.Flow DLLs, located in the Telerik WinForms installation folder.
- Load the .doc type document using DocFormatProvider from our document processing library. This provider will import the document into RadFlowDocument.
- Export the RadFlowDocument to a byte array using DocxFormatProvider from the document processing library.
- The last step is to use WinForms DocxFormatProvider to load and create RadDocument from a byte array.