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

How to open a word doc in rich textbox.

Help me out.

Thanks in advice.
Posted
Comments
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: https://en.wikipedia.org/wiki/Rich_Text_Format[^].

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.

—SA
 
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