473,395 Members | 1,688 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Word document viewing in RichTextBox control

Word document viewing in RichTextBox control
Nov 21 '05 #1
3 8671
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Ludovic SOEUR | last post by:
Suppose I have a .Net C# Winforms App with a RichTextBox control and I want to provide an option for the user to open the Rtf in Word, edit it in Word and get the edited value back to my C# app...
7
by: Zeke | last post by:
I'm using the following code to create word document but the problem is if you go to task manager you'll see a WINWORD.EXE process is running but not the application, here is the code: ...
1
by: Amit D.Shinde | last post by:
Can Microsoft Word Document(.Doc) be loaded in Rich Text Box. Or is there any other method to get preview of Microsoft Word Document in VB.NET Please Help me
3
by: Jeff Haumesser | last post by:
Does anyone know a way to display RTF text in a word document? I have RTF text from a dataset, and wish to display the text Formatted in a Word document. The problem is that the format codes are...
0
by: sss024 | last post by:
Word document viewing in RichTextBox control
5
by: aolson | last post by:
First of all i am pretty new to VB .NET as a whole so my answer may be silly as may my questions. Here is what i would like to do. I would like to open potentially multiple word documents for...
0
by: Andrew | last post by:
hi i have created s user control for richtextbox. I need to save the contents of this control to a word document.now the pure html is displaying in the word document like <strong> <b>..i need...
3
by: Greg (codepug | last post by:
For the purpose of viewing a document that I would like to modify on rare occassion using word. I would like to create a document with MS Word, and then have my Access Application launch and...
5
by: sphinney | last post by:
Basic question: Does anyone know how to go about adding a control to an Access 2007 form that will allow viewing a Word 2007 document? Reason for asking: My office is about to receive 100+/-...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.