Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET
System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80040154.
 

Need to solve above Error but without Installing Microsfot Office. Is there any
dll available for Microsoft.Office.Interop.Word.
 
At my machine, Word 2007 is installed and code is working fine there, on my server machine Microsoft Word is not installed?
Posted 2-Feb-13 3:21am
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Hi,
 
You need to install Microsoft Word. Without Microsoft Word, your application don't will work.
Mirza Asim Baig wrote:
Is there any
dll available for Microsoft.Office.Interop.Word.
Yes, but if you add a reference to this DLL file, your application will still throw an exception, because Word isn't installed.
 

Mirza Asim Baig wrote:
Need to solve above Error but without Installing Microsfot Office.
You can't.
 
Hope this helps.
  Permalink  
v2
Comments
Edo Tzumer at 3-Feb-13 0:47am
   
5+
ProgramFOX at 3-Feb-13 3:26am
   
Thank you!
Abhinav S at 3-Feb-13 2:22am
   
5+
ProgramFOX at 3-Feb-13 3:26am
   
Thank you!
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

A "DLL" won't help you.
If you really want to work without Office installation, you can consider using 3rd-party products which do that.
 
Please see my past answers to related topics:
Convert Office-Documents to PDF without interop[^],
Hi how can i display word file in windows application using c#.net[^],
Read a word file without using Interop.word dll...Do not want to install word in IIS..[^].
 
—SA
  Permalink  
Comments
Abhinav S at 3-Feb-13 2:22am
   
5!
Sergey Alexandrovich Kryukov at 3-Feb-13 13:11pm
   
Thank you, Abhinav.
—SA
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

You will need an office installation to use office interop.
Unfortunately, there is no workaround available for this.
 
The best you can do is not use interop - this blog[^] gives a solution.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 CHill60 280
1 Sarvesh Kumar Gupta 238
2 Sergey Alexandrovich Kryukov 203
3 OriginalGriff 163
4 DamithSL 153


Advertise | Privacy | Mobile
Web01 | 2.8.140709.1 | Last Updated 3 Feb 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid