473,390 Members | 1,115 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,390 software developers and data experts.

Word document viewing in RichTextBox control

Word document viewing in RichTextBox control
Nov 21 '05 #1
3 8670
"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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.