Click here to Skip to main content
15,921,174 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:

How to open a word doc in rich textbox.

Help me out.

Thanks in advice.
Sinisa Hajnal 21-Jul-15 2:33am    
What have you tried?
Baroor 21-Jul-15 2:49am    
Tried using Microsoft office Dll, but i want this without using Microsoft office Dll.

Is it possible, if yes please suggest me.

1 solution

You cannot, period. Not in RichTextBox.

Rich text box is based on much simpler Rich Text Format, and Word is not:[^].

You can learn how to parse Word (Open XML) document, map it to other document, anything, but once you use this data to show in RichTextBox, it won't be a Word document, not even remotely close. Note that Word is proprietary application which does not provide any libraries to be used in other applications, but let's assume that you managed to create software replicating all Word functionality, at least as a read-only software, a pure viewer, then yes, open Word, and pretty likely, RTF, but the trouble is… this software won't be RichTextBox, not even remotely close.

Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900