I m making a word processing application it is opening rich text file and plain text file now i want to open a ms word file with extension of .doc in rich text box how can i open it in rich text box.
You have to export the Word file to RTF (Rich Text File) format which is recognized by RichTextBox. You can use Word Automation to make the export from Word to RTF. Connect to the document and use the SaveAs method.
Microsoft supplies an ActiveX control which allows developers to embed Office files for in-place editing and viewing while giving more control than the WebBrowser control. The ActiveX is called Dsoframer.ocx and more info can be found here: ActiveX Control for Hosting Office Documents in Visual Basic
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.