471,594 Members | 1,712 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,594 software developers and data experts.

Word document viewing in RichTextBox control

Word document viewing in RichTextBox control
Nov 21 '05 #1
3 8557
"sss024" <ss****@hotmail.com> schrieb:
Word document viewing in RichTextBox control


No. RichTextBox does not support viewing DOC files. (If this is what you
want to hear...)

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #2
Take a look at the free DSOFRAMER control on the Microsoft Site. Fully
supports doc files. I was doing some work with RTF files and found that
anything aprt from this or word would not display many of my files
correctly. Works very well.

http://support.microsoft.com/default...b;en-us;311765

Best wishes

Paul Bromley
"sss024" <ss****@hotmail.com> wrote in message
news:On**************@TK2MSFTNGP15.phx.gbl...
Word document viewing in RichTextBox control

Nov 21 '05 #3
Try following code:
Public Sub InsertWordDocument(ByVal fullFileName As Object Byval rtb as
RichTextBox)
Dim wd As New Word.Application

With wd
.Documents.Open(fullFileName)
.Selection.WholeStory()
.Selection.Copy()

rtb.Paste

.Quit()
End With
wd = Nothing
End Sub
"sss024" wrote:
Word document viewing in RichTextBox control

Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Ludovic SOEUR | last post: by
1 post views Thread by Amit D.Shinde | last post: by
3 posts views Thread by Jeff Haumesser | last post: by
5 posts views Thread by aolson | last post: by
3 posts views Thread by Greg (codepug | last post: by
reply views Thread by Anwar ali | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.