473,503 Members | 2,259 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

read a ms word doc

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
11 1574
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
"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
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
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
no i upload a doc file in to server and read it then display on the
web page

Apr 11 '07 #6
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
"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
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
"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
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
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
1697
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 =...
5
9873
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
5347
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...
2
3373
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...
3
9752
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 =...
5
10936
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...
5
4304
by: sajithkahawatta | last post by:
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...
6
5685
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 *...
0
3833
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,...
11
2107
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...
0
7207
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
7291
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
7357
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...
1
7012
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...
1
5023
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...
0
4690
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...
0
3171
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
748
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
402
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.