Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
See more:
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

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.
 
Share this answer
 
v2
Comments
Joezer BH 3-Feb-13 0:47am    
5+
Thomas Daniels 3-Feb-13 3:26am    
Thank you!
Abhinav S 3-Feb-13 2:22am    
5+
Thomas Daniels 3-Feb-13 3:26am    
Thank you!
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
 
Share this answer
 
Comments
Abhinav S 3-Feb-13 2:22am    
5!
Sergey Alexandrovich Kryukov 3-Feb-13 13:11pm    
Thank you, Abhinav.
—SA
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.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900