473,729 Members | 2,272 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Displaying Word Documents

Can someone please point me in the right direction for displaying word
documents onto a webpage? The word documents will contain
text/tables/pictures. I am new to this and can't quite find what I need.
Thanks,
Jul 22 '05 #1
8 2259
"Jason Steeves" <Ja**********@d iscussions.micr osoft.com> wrote in message
news:7D******** *************** ***********@mic rosoft.com...
Can someone please point me in the right direction for displaying word
documents onto a webpage? The word documents will contain
text/tables/pictures. I am new to this and can't quite find what I need.
Thanks,

if you have a word document it can be displayed in the browser but simply by
typing in the address.

if you want to create one dynamically.
http://www.microsoft.com/windows2000...p/vbob67ol.htm
Jul 22 '05 #2
Gazing into my crystal ball I observed "=?Utf-8?B?SmFzb24gU3R lZXZlcw==?="
<Ja**********@d iscussions.micr osoft.com> writing in news:7D9C95A3-3D42-
44************* *******@microso ft.com:
Can someone please point me in the right direction for displaying word
documents onto a webpage? The word documents will contain
text/tables/pictures. I am new to this and can't quite find what I need.
Thanks,


It depends on the user having Word available, and the user allowing Word to
be displayed in the browser. For users who may not have Word, or may not
want it loaded in their browser, you should provide a link to the document.
Additionally, if the document is very important, I would also provide an
alternative, perhaps PDF and/or HTML.

--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
Jul 22 '05 #3
Is there a way to read the document and then have an html version displayed
on the webpage? I need to read a basic text file and display that as the
header information and then need to read/display the word document
immediately underneath the header information. The word docs will have
tables/pictures and this is what's messing me up............. ..Thanks,

"Adrienne" wrote:
Gazing into my crystal ball I observed "=?Utf-8?B?SmFzb24gU3R lZXZlcw==?="
<Ja**********@d iscussions.micr osoft.com> writing in news:7D9C95A3-3D42-
44************* *******@microso ft.com:
Can someone please point me in the right direction for displaying word
documents onto a webpage? The word documents will contain
text/tables/pictures. I am new to this and can't quite find what I need.
Thanks,


It depends on the user having Word available, and the user allowing Word to
be displayed in the browser. For users who may not have Word, or may not
want it loaded in their browser, you should provide a link to the document.
Additionally, if the document is very important, I would also provide an
alternative, perhaps PDF and/or HTML.

--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

Jul 22 '05 #4
I've been looking for a way to do this too. I've seen suggestions to
use Word automation:
Server.CreateOb ject(Word.Appli cation)


But there's a lot of problems, since now winword.exe is running as
iusr_*. As soon as I try to open a doc (or create a new one) I get
"cannot open macro storage" since the user registry hive is not loaded
for the IUSR user. I don't yet know how to work around this. The
official MS line I've seen is "don't do this, office is not designed
for ASP use". Great.

I have similar needs; I need to be able to read the contents of a Word
..doc file from ASP. I don't care about images and tables like Jason
does, that may make it a bit harder.

So the question remains: is there a way to take a word .doc file and
either read the contents with ASP, or convert it to HTML?

PS. Please, no suggestions on adding response.addHea ders to open with
word on client side, or how to create. Those are great. Those are not
related.

Jul 22 '05 #5
gr*****@rocketm onkeys.com wrote:
I've been looking for a way to do this too. I've seen suggestions to
use Word automation:
Server.CreateOb ject(Word.Appli cation)
But there's a lot of problems, since now winword.exe is running as
iusr_*. As soon as I try to open a doc (or create a new one) I get
"cannot open macro storage" since the user registry hive is not loaded
for the IUSR user. I don't yet know how to work around this. The
official MS line I've seen is "don't do this, office is not designed
for ASP use". Great.


Are you thinking of this?
http://support.microsoft.com/default...b;en-us;257757

If so, look again - after disavowing any responsibility (don't call us if it
fails, blah blah) they do explain how to do it.

I have similar needs; I need to be able to read the contents of a Word
.doc file from ASP. I don't care about images and tables like Jason
does, that may make it a bit harder.

So the question remains: is there a way to take a word .doc file and
either read the contents with ASP, or convert it to HTML?

None that I know of that do not involve using Word.

Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jul 22 '05 #6
You're right, it does explain how to run Office Automation server side.
I've got it temporarily working by change the IIS user to the
interactive user for a certain web application. Good for development,
but I'd want to explore the other options for deployment.

But I'm still left wondering... this is a basic thing. There are
plenty of options to write word files without office, without having to
do crazy server setup or things that are "not recommended" and error
prone. Are there really no good ways to read?

The INFO Bob linked to is a great start, but still begs that question.
It has an entire section labeled "Use Alternatives to Automation", and
seems like a good resource... excep that it does not seem to address in
the least reading a word file. I just can't accept the fact that
something so simple can be nearly impossible to do simply/correctly.
Anyone have a creative solution?

Jul 22 '05 #7
Hey!
I'm new in this group, but I have almost the same problem.
I'm developing an ASP.NET appl. which Create a Word doc with using
Prim.Interop.As semblyes.
The Word file contains pictures, and other data which were typed by the user
on a Web Page.
The end of the process the User can download the Word doc file from the
Web-page.

It's working but I don't know How the Word is working in a Multi-User
environment?
Maybe if 50 user (connected on the Web) try to make a Word Report, will 50
winword process start on the Server?

It is workable? Is this a good solution?

Please Help me!

Yours Sincerely,
Gabor Lesko from Hungary
Jul 22 '05 #8
Gabor Lesko wrote:
Hey!
I'm new in this group, but I have almost the same problem.
I'm developing an ASP.NET appl.


There was no way for you to know it, but this is a classic asp newsgroup.
While you may be lucky enough to find a dotnet-knowledgeable person here who
can
answer your question, you can eliminate the luck factor by posting your
question to a group where those dotnet-knowledgeable people hang out. I
suggest
microsoft.publi c.dotnet.framew ork.aspnet.

Bob Barrows

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jul 22 '05 #9

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

Similar topics

3
4312
by: Phil Rutter | last post by:
Hello All, I have about 700 word documents that have 2 tables one is static 4 colums x 5 rows the other is 5 colums x rows ranging from 2 to 100 what i wolud like to do is open the word doc. import the first word table then import the second word table close word doc open next word doc and repeat process. i am able to import one set of data currently into an excel spread sheet but how can i loop through all the documents and import them...
10
3058
by: Neil | last post by:
An article at http://news.com.com/2100-1012-991694.html?tag=fd_top states: "XML would allow easier interchange of data generated in Office documents with back-end systems or existing Web services." As part of an Access 2000 application, I have to continually parse Word documents and store the parsings in Access tables using Automation to control Word and parse the document. Is there a way that XML would help with that? Thanks.
4
7681
by: Daniel | last post by:
Hello, i have a problem with the word automation from c#. First, i want to mention, that i don't have any dependencies from word in my c#-project, i want to use the system.reflection model to handle the automation. So, i'm using the following code to create a new word document: ---Code---
0
6298
by: mharris | last post by:
I need help with merging two Word documents into one through C# code. The problem isn't so much getting the documents put into one as it is maintaining the appropriate formatting, or rather reformating, after the merge. This is a full description of my needs. I have a C# class library that creates two Crystal Reports, and then exports them to the harddrive as Word documents. One's orientation is landscape, the other is portrait. I then...
0
1471
by: Steve | last post by:
I am noticing a problem when interfacing with Word through my C# code. What I am trying to do is enumerate through the documents currently open in Word. I have noticed issues with this on both methods I can think to try. We are using COM objects, because we need compatibility with Word 2000. I am testing this against Word 2003 however. For simplicity sake, I have two documents open, 1.doc and 2.doc.
7
6245
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 user and populated (with info from an Access database) at run-time, then saved as Word documents. The program I have coded works fine -- it does what I need it to do. But it has two problems: (1) it runs very slowly, and (2) it does not seem to...
5
3115
by: Carstonio | last post by:
I use ASP to display links to Word documents on an intranet. Is there a way in ASP to do text searches on the documents' contents? I want the results to have the link to the Word document plus two or three lines from the document that include the search terms.
0
1321
by: tshad | last post by:
I have set up an upload of doc and pdf files which works fine. If I open up the uploaded files in Word it looks exactly like the my originals. If I open up the files from my web page so that it opens up in IE, it displays ALMOST correct. On one of my pages I have a document that is Times Roman 10 and 11. Not bolded. But when I select my link which was an asp:Hyperlink object:
2
4882
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 Dim filename As String filename = "c:\temp\mergedata\1.doc" objWord = CreateObject("Word.Application") For count = 1 To 10000
0
8913
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9426
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9200
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9142
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8144
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6722
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6016
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4525
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2677
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.