Solved

Convert .doc to plain text file and later without having word installed

Posted on 2008-10-03
5
627 Views
Last Modified: 2011-10-03
How can I convert a .doc file(ms word or open office writer) to only plain text file using C#.
I have first used Microsoft.Office.Interop.Word.dll and it work fine on my computer.Then when i moved the webapp to the server I got the message:
 Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80040154.
because in that server i do dont have ms word installation.
Plz give the solution asap.

Thanks,
Vimal
0
Comment
Question by:smnetserv
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 6

Accepted Solution

by:
Jammer59 earned 63 total points
ID: 22632998
Have you installed Microsoft.Office.Interop.Word.dll on the server and registered it?
This article from Microsoft explains - Installing and Using the Office 2003 Primary Interop Assemblies   - http://msdn.microsoft.com/en-us/library/aa159923(office.11).aspx
You may also run into issues on the server where your web application does not have rights to the dll.  You may have to review IWAM_<machine_name> and IUSR_<machine_name> rights to the dll.
 
 
0
 
LVL 70

Assisted Solution

by:Éric Moreau
Éric Moreau earned 62 total points
ID: 22633345
0
 
LVL 1

Expert Comment

by:rclint
ID: 22636405
I didn't verify this but I have had some success by copying the dll containing the code I want to use to the web directory.  Sometimes just having the dll there and linked to will provide the functions you want without installing anything to the server.  This does have the downside that if the dll is ever updated then you will be using an older dll.  In my cases it didn't matter because I was only using one or two functions anyway.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Ever visit a website where you spotted a really cool looking Font, yet couldn't figure out which font family it belonged to, or how to get a copy of it for your own use? This article explains the process of doing exactly that, as well as showing how…
This video walks the viewer through the process of creating Hyperlinks for the web and other documents. Select the "Insert" tab: Click "Hyperlink":  Type "http://" followed by a web address to reference a website or navigate to a document to ref…
This video shows where to find templates, what they are used for, and how to create and save a custom template using Microsoft Word.

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question