Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Load MS Word document

Status
Not open for further replies.

draganss

Programmer
Jan 13, 2006
47
MK
VS.NET 2002
How can I load MS Word document (*.doc) into rich text box?

Thank you.
 
You can't. The rich text box only understands .rtf files, and then, only a small subset of the .rtf format.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
So if there is no easy way, I'll look for some workarounds.
Thanx to both of you.
 
I don't remember it being especially easy. You lose headers and footers I'm sure, but I can't remember what else, and it looks like I lost the code. We were working on a printing issue and it looked like a possible solution, but we wound up getting a print driver to do the trick we were looking for.

-Rick

VB.Net Forum forum796 forum855 ASP.NET Forum
[monkey]I believe in killer coding ninja monkeys.[monkey]
 
From memory I think copying the formatted text to & then from the clipboard into a RichTextBox might work, otherwise can you control the Word doc to save it as RTF format then copy?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top