Solved

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

Posted on 2008-10-03
5
626 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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

I'm writing to share my clumsy experience in using this elegant tool so you can avoid every stupid mistake I made. (I leave it to the authorities to decide if this deserves a place in the Knowledge archives.)  Now that I am on the other side of my l…
The Selection object is designed for user interaction. It has a Range property, so it can be used in most places that a Range object can. Recorded macros must use the Selection because they are simply copying what the user is doing. A Range prope…
This video walks the viewer through the process of creating a watermark for their document, customizing it, and saving it for viewing/printing needs.
This video shows where to find the word count, how to display it, and what it breaks down to in Microsoft Word.
Suggested Courses

737 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