How can i open word document in Rich Text Box

aliraza

Member
Joined
May 20, 2006
Messages
7
Location
Pakistan.
Programming Experience
1-3
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.
 
I'm not entirely sure that you can, and even if you did find a way i'm sure that there would be some un-readable characters due to the formatting.
 
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.
 
Back
Top