By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,977 Members | 1,136 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,977 IT Pros & Developers. It's quick & easy.

read a ms word doc

P: n/a
i wrote a code to read a doc and display that data on web page. 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
Share this Question
Share on Google+
11 Replies


P: n/a
To use Word automation you must have Word installed on the server. Using
automation of Office products from a web site is a very bad idea for many
reasons. Word is not designed to be automated from an interfaceless multi
threaded environment.

"sajithkahawatta" <sa*************@gmail.comwrote in message
news:11*********************@d57g2000hsg.googlegro ups.com...
>i wrote a code to read a doc and display that data on web page. 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 #2

P: n/a
"sajithkahawatta" <sa*************@gmail.comwrote in message
news:11*********************@d57g2000hsg.googlegro ups.com...
>i wrote a code to read a doc and display that data on web page. 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.
I've already answered this twice now in the C# forum, so here we go for the
third time...

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

Do not under any circumstances install Microsoft Office on a webserver.
Apr 10 '07 #3

P: n/a
What exactly do you do with the document? Can you consider client-side
automation?

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"sajithkahawatta" <sa*************@gmail.comwrote in message
news:11*********************@d57g2000hsg.googlegro ups.com...
>i wrote a code to read a doc and display that data on web page. 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 #4

P: n/a
The technique you are using (COM interop with Office) is not recommended for
use with ASP.NET, as explained here by Microsoft:
http://support.microsoft.com/default...;EN-US;q257757

There are some good 3rd party products that would probably be better
options.
Here are a couple that should work:
http://SteveOrr.net/reviews/AsposeWord.aspx
http://SteveOrr.net/reviews/OfficeWriter.aspx

VSTO should also work:
http://msdn2.microsoft.com/en-us/office/aa905533.aspx

--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net
"sajithkahawatta" <sa*************@gmail.comwrote in message
news:11*********************@d57g2000hsg.googlegro ups.com...
>i wrote a code to read a doc and display that data on web page. 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 11 '07 #5

P: n/a
no i upload a doc file in to server and read it then display on the
web page

Apr 11 '07 #6

P: n/a
if i use asposeword, should i install it in to the server. is it so i
think installing ms word is better far my application.
thanks

Apr 11 '07 #7

P: n/a
"sajithkahawatta" <sa*************@gmail.comwrote in message
news:11**********************@d57g2000hsg.googlegr oups.com...
if i use asposeword, should i install it in to the server.
Aspose is a fully managed .NET assembly - no installation required. Just
drop the .dll into your app's \bin folder and you're good to go.
is it so i think installing ms word is better far my application.
Read the following two Microsoft articles:
http://support.microsoft.com/default...US;q257757#kb2
http://support.microsoft.com/default.aspx/kb/288367

Then read them both again.

If, after reading them, you *still* believe that server-side Word automation
is an intelligent thing to do, then I would respectfully suggest that you
consider an alternative career...
Apr 11 '07 #8

P: n/a
one more quetion,
in the artical it show to modify the doc but i want to read a doc and
grt that data in to variable . can u give me a samle code to read a
doc
because i can not understand the artical well
thank you.
Apr 11 '07 #9

P: n/a
"sajithkahawatta" <sa*************@gmail.comwrote in message
news:11**********************@l77g2000hsb.googlegr oups.com...
one more quetion,
in the artical it show to modify the doc but i want to read a doc and
grt that data in to variable . can u give me a samle code to read a
doc
because i can not understand the artical well
What article are you talking about...?
Apr 11 '07 #10

P: n/a
the link shown gy steve c. orr
the link "http://steveorr.net/reviews/AsposeWord.aspx"
whatever can u give me a sample code.
thanks

Apr 11 '07 #11

P: n/a
"sajithkahawatta" <sa*************@gmail.comwrote in message
news:11**********************@p77g2000hsh.googlegr oups.com...
the link shown gy steve c. orr
the link "http://steveorr.net/reviews/AsposeWord.aspx"
Ah right...

In that article, Steve demonstrates how to use Aspose to allow .NET
solutions to interface with Microsoft Office apps - specifically, in this
case, Microsoft Word.

Aspose is a 3rd-party add-in for .NET - if you want to use it, you have to
buy it!
http://www.aspose.com/Purchase/Aspos...s/Default.aspx
whatever can u give me a sample code.
Once you have purchased Aspose and copied the .dll into your \bin folder,
then the code samples in Steve's article will work...
Apr 11 '07 #12

This discussion thread is closed

Replies have been disabled for this discussion.