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

Display a word document in a Windows program without Word

I need to write a windows program in C# that will display a word document on
the screen without having Word loaded on the machine.

How can I do this?

TIA - J.
Oct 14 '08 #1
3 4538
On Tue, 14 Oct 2008 13:52:59 -0400
"Mufasa" <jb@nowhere.comwrote:
I need to write a windows program in C# that will display a word
document on the screen without having Word loaded on the machine.

How can I do this?
If you do not have Word installed on the machine, and the program must
be one of your own creation, then you'll have to read the DOC format
and render it just like MS Word or MS Word Viewer does. There is open
source software that you can study (in other languages) to see how it
is done; you can even look at the source code to OpenOffice.org, which,
IIRC, is done in C++.

Would not the free Word Viewer do what you need, though?

http://www.microsoft.com/downloads/d...displaylang=en

--- Mike

--
My sigfile ran away and is on hiatus.

Oct 14 '08 #2
I will be calling this from a program and my understanding is that when you
use the viewer it automatically opens the document in another window. I want
to be able to have it as part of the window I already have open.

J.

"Michael B. Trausch" <mi**@trausch.uswrote in message
news:20081014142835.5755b22e@zest...
On Tue, 14 Oct 2008 13:52:59 -0400
"Mufasa" <jb@nowhere.comwrote:
>I need to write a windows program in C# that will display a word
document on the screen without having Word loaded on the machine.

How can I do this?

If you do not have Word installed on the machine, and the program must
be one of your own creation, then you'll have to read the DOC format
and render it just like MS Word or MS Word Viewer does. There is open
source software that you can study (in other languages) to see how it
is done; you can even look at the source code to OpenOffice.org, which,
IIRC, is done in C++.

Would not the free Word Viewer do what you need, though?

http://www.microsoft.com/downloads/d...displaylang=en

--- Mike

--
My sigfile ran away and is on hiatus.

Oct 17 '08 #3
You will need to use a third party component such as Aspose ,
http://www.aspose.com/, if you want it embeded in your form.
"Mufasa" <jb@nowhere.comwrote in message
news:eE**************@TK2MSFTNGP02.phx.gbl...
>I will be calling this from a program and my understanding is that when you
use the viewer it automatically opens the document in another window. I
want to be able to have it as part of the window I already have open.

J.

"Michael B. Trausch" <mi**@trausch.uswrote in message
news:20081014142835.5755b22e@zest...
>On Tue, 14 Oct 2008 13:52:59 -0400
"Mufasa" <jb@nowhere.comwrote:
>>I need to write a windows program in C# that will display a word
document on the screen without having Word loaded on the machine.

How can I do this?

If you do not have Word installed on the machine, and the program must
be one of your own creation, then you'll have to read the DOC format
and render it just like MS Word or MS Word Viewer does. There is open
source software that you can study (in other languages) to see how it
is done; you can even look at the source code to OpenOffice.org, which,
IIRC, is done in C++.

Would not the free Word Viewer do what you need, though?

http://www.microsoft.com/downloads/d...displaylang=en

--- Mike

--
My sigfile ran away and is on hiatus.


Oct 17 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

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: ...
7
by: Dave | last post by:
Apologies for the newbie question. I have created a vb.net program for my company that is designed to work with Word Templates (about forty of them that we commonly use) that are selected by the...
1
by: electrixnow | last post by:
I wrote a program in VC++ that generates a text file report. I would like to get this report data into a word document that my company uses. I could use bookmarks for reference in the document. Is...
1
by: electrixnow | last post by:
I wrote a program in VC++ that generates a text file report. I would like to get this report data into a word document that my company uses. I could use bookmarks for reference in the document. Is...
5
by: hayworth | last post by:
How do I get the color depth of the screen/display adapter with vb.net 2003? Background: We're having transparency problems (long side story and known Windows "bug") that requires our systems to...
1
by: live | last post by:
Hi, when i try to open document word for reading and writing with C#, the program stop on this line And the program give me this error : 'DefaultDomain' : chargé
0
by: Niyazi | last post by:
Hi, I created application that store the data in SQL SERVER that reside on network. The client also use this application to access the resources provided with application. But is the client want...
12
by: Steve | last post by:
I've been building an application that will merge fields in a text file with a word template, save the resulting word file out to the user's hard drive, and then email the file as an attachment. ...
2
by: Derek Hart | last post by:
I am using late bound Microsoft Word integration with a vb.net winforms application. If I run code such as the following: Dim objWord As Object Dim objWrdDoc As Object Dim count As Integer...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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
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...

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.