473,785 Members | 2,327 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

read a word doc

i wrote a code to read a doc in asp.net i woked properly in my iis ms
word is installed in this pc. but when i published in another sever in
which there is no ms word instslled it give error in it i used com
reference.

i want to know is there is a way to read a doc when ms word is not
instslled on the server

Apr 10 '07 #1
5 4329
"sajithkahawatt a" <sa************ *@gmail.comwrot e in message
news:11******** **************@ o5g2000hsb.goog legroups.com...
>i wrote a code to read a doc in asp.net i woked properly in my iis ms
word is installed in this pc. but when i published in another sever in
which there is no ms word instslled it give error in it i used com
reference.

i want to know is there is a way to read a doc when ms word is not
instslled on the server
Firstly, you're in the wrong newsgroup. This is an ASP.NET question, and
should have been posted to microsoft.publi c.dotnet.framew ork.aspnet

Anyway...

Secondly, it's really important for you to understand that server-side
automation of Office is not supported at all by Microsoft, and is highly
unlikely to work in a networked environment:
http://support.microsoft.com/default...US;q257757#kb2

The fact that you may have got it working locally is neither here nor
there...

Thirdly, if you are simply wanting to stream a Word document to a client
browser, then it won't matter whether Word is installed on the server or
not, unless you're trying to do something else other than document
streaming.

Fourthly, your client machines will need to have a local copy of Word (or
the Word Viewer) installed otherwise they won't be able to view the document
natively.
Apr 10 '07 #2
actually i read a doc and get that data on to asp page to display on
webpage. so must ms word be installd to server

Apr 10 '07 #3
"sajithkahawatt a" <sa************ *@gmail.comwrot e in message
news:11******** **************@ y5g2000hsa.goog legroups.com...
actually i read a doc and get that data on to asp page to display on
webpage. so must ms word be installd to server
OK, I'll tell you again...

Server-side automation of Office is not supported at all by Microsoft, and
is highly unlikely to work in a networked environment:
http://support.microsoft.com/default...US;q257757#kb2

If you need to read a Word document server-side, then you need to use this:
http://www.aspose.com/Products/Aspose.Words/
Apr 10 '07 #4
"sajithkahawatt a" <sa************ *@gmail.comwrot e in message
news:11******** **************@ y5g2000hsa.goog legroups.com...
actually i read a doc and get that data on to asp page to display on
webpage. so must ms word be installd to server

As Marc said, the problem is with the way you "read" a word document. You don't actually
*read* the document from within your own code, you are "asking" a program "winword.ex e" to
actually read the document, this is what is called automation, using another program as a
server, in order to perform a task the client (your code) can't actually execute himself.
This programming model isn't supported (and actually doesn't work) in a server like
environment like ASP and SP.NET, the "why" is carefully explained in the KB article pointed
to by Marc, please read it before getting to much involved into something that will probably
never work. Anyway, if you still want to go down that road, you'll need to install MS Word
on the server.

Willy.

Apr 10 '07 #5
"Willy Denoyette [MVP]" <wi************ *@telenet.bewro te in message
news:%2******** ********@TK2MSF TNGP06.phx.gbl. ..
As Marc said, the problem is with the way you "read" a word document. You
don't actually *read* the document from within your own code, you are
"asking" a program "winword.ex e" to actually read the document, this is
what is called automation, using another program as a server, in order to
perform a task the client (your code) can't actually execute himself. This
programming model isn't supported (and actually doesn't work) in a server
like environment like ASP and SP.NET, the "why" is carefully explained in
the KB article pointed to by Marc, please read it before getting to much
involved into something that will probably never work. Anyway, if you
still want to go down that road, you'll need to install MS Word on the
server.
Absolutely correct..

The problem I usually have in getting this over to people is that, whereas
(as you correctly state above) this almost always never works in a networked
production environment, it almost *always* works in a "standard"
single-developer environment i.e. VS.NET 2005, IIS 5.1, Office 2003 and IE
all installed and running locally on the same installation of XP Pro...

Therefore, developers stumble along quite happily with Office automation in
ASP.NET until the day they try to get it working over the network or, even
worse, over the Internet...

Reading the OP, I'm as certain as I can be that this is the case here...
Apr 10 '07 #6

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

Similar topics

4
1718
by: gregus | last post by:
Hi everyone!!! I want to read data from several files into a single buffer. How can I do this??? I have something like this: //... typedef unsigned short word; const unsigned int W_SIZE = sizeof(word); //...
5
9906
by: Shayer | last post by:
Hello All I am trying to read a MSDoc file and PDF file using Streamreader and then display the content into a richtext box. But cant do that. Anyone can pls help me out Thanks Shayer
3
5378
by: sb Luis | last post by:
I Use the following code to read from MS Word, but I couldent read Formated Text (RTF). How Can I read formated text from MS Word Doc without using clipboard. thanks. Word.ApplicationClass WordApp = new Word.ApplicationClass(); ..... // Let's get the content from the document Word.Paragraphs DocPar = Doc.Paragraphs; // Count number of paragraphs in the file
2
3395
by: Patrik Birgersson | last post by:
Hi there! I've been trying for days to find a solution anywhere on the web to this problem and I hope you might be able to sort me out. I want to use PHP and COM to set and read values of MS Word form checkboxes. I am able to read and write values to text-fields, but I cannot find the solution for how to call a checkbox. :(
3
9785
by: Jay | last post by:
Hi, I need to read word document file in ASP.net and place it in a text box . How to do it ? i tried : Word.Application app = new Word.ApplicationClass(); object nullobj = System.Reflection.Missing.Value; object file = @"C:\Suneetha\Ques.doc"; Word.Document doc = app.Documents.Open( ref file, ref nullobj, ref nullobj,
5
10948
by: JohnSouth | last post by:
Hi I've seen lots of posts around this subject but nothing recent or very helpful. I've an ASP.Net c# application that needs to read Word documents from a directory on the web server, open them in Word from the client browser, edit the content and then update the document on the server. I can almost do it by pasting the url into the "Save As" location but I
6
5716
by: arnuld | last post by:
This works fine, I welcome any views/advices/coding-practices :) /* C++ Primer - 4/e * * Exercise 8.9 * STATEMENT: * write a program to store each line from a file into a * vector<string>. Now, use istringstream to read read each line * from the vector a word at a time.
0
3876
by: alivip | last post by:
Is python provide search in parent folder contain sub folders and files for example folder name is cars and sub file is Toyota,Honda and BMW and Toyota contain file name camry and file name corola, file name honda contain folder accord and BMW contain file name X5 Is there way to enter name of parent folder(cars) and search in all sub folder(Toyota,Honda and BMW) and files ? how can I intgreat cod to be user interface (buttun ,text box...
11
2134
by: alivip | last post by:
how to ingrate my code to read text in in parent folder contain sub folders and files for example folder name is cars and sub file is Toyota,Honda and BMW and Toyota contain file name Camry and file name corolla, file name Honda contain folder accord and BMW contain file name X5 Is there way to enter name of parent folder(cars) and search in all sub folder(Toyota,Honda and BMW) and files ? please help ASAP code is find most frequent...
0
9647
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
9491
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10104
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
9959
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
8988
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...
0
6744
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
5532
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4063
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3668
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.