?
Solved

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

Posted on 2008-10-03
5
Medium Priority
?
628 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 252 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 248 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

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

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

Shortcuts in Word Just the other day I had a training for Microsoft and they wanted me to show how well the new Windows and Office behaved on a touch device, which by the way is great, but it was only then that I realized that using keyboard shortc…
Preface: When I started this series, I used the term CommandBars because that is the Office Object class that it discusses. Unfortunately, when Microsoft introduced Office 2007, they replaced the standard Commandbar menus with "The Ribbon" and rem…
This video shows where to find templates, what they are used for, and how to create and save a custom template using Microsoft Word.
This Micro Tutorial well show you how to find and replace special characters in Microsoft Word. This is similar to carriage returns to convert columns of values from Microsoft Excel into comma separated lists.

777 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