Click here to Skip to main content
15,881,204 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
in my application i want convert docx file to html with microsoft.office.interop.word evrything in my system fine but in other machine x86 dosent work and appera this error " retrieving the COM class factory for component with CLSID {0002095FF-0000-0000-C000-000000000046} failed due to the following error: 80040154" help me!

i tryed : 1.change target machine from any cpu to X86
2.add microsoft.office.interop.worrd.dll but cannot add it with regsvr32

help me


EDITED

in my system office 2007 installed and in the other system office 2010 or 2013 installed
Posted
Updated 13-Aug-14 5:37am
v2
Comments
Herman<T>.Instance 13-Aug-14 8:59am    
same word versions and interops on both systems?
Dave Kreskowiak 13-Aug-14 9:04am    
Do the system have Office installed on it? The same version that you built your code against? Does it have Visual Studio Tools for Office installed?
saeed jahandar 13-Aug-14 10:49am    
yes in that system office installed but not same version . in developement system office 2007 and in other system office 2010
[no name] 13-Aug-14 12:05pm    
Well don't you think that's a problem?
saeed jahandar 13-Aug-14 12:42pm    
did you mean if i useed interop.word / excel in evry machin the same office version
BUT in X86 work fine in evry office installed

1 solution

Learn copy/paste! The Guid for word.application is
{000209FF-0000-0000-C000-000000000046}, not
{0002095FF-0000-0000-C000-000000000046}
Make sure that a 32bit version of Word 2007 or later is installed on the target machine.
The Interop dlls do not install Word!
 
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