COM class error when using Microsoft Word  
Author Message
trekkie25





PostPosted: Visual Basic Express Edition, COM class error when using Microsoft Word Top

I am using an app with a spell check feature. Microsoft waord is the application that I am using. Recently I have started getting the following error:

Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 8007007e.

The error seems to be generated by the following line of code: The application crashes at this line every time a spell check is initiated. The code that creates an instance of Word seems to be the problem issue. Am I missing something Again remember that this app was working fine for a month.

Dim objWordApp As New Word.Application

I Import the following namespace.

Imports Microsoft.Office.Interop

I believe that this is a FileNotFoundException error. Whats strange is that the feature has worked flawlessly for over a month and just today crashed. I believe that the correct references are in place (otherwise this app would not hae worked before). I have not installed or uninstalled Word. I am puzzled by the fact that this error suddenly appeared. I can open MSFT Word outside the application and it works just fine.



Visual Studio Express Editions7  
 
 
trekkie25





PostPosted: Visual Basic Express Edition, COM class error when using Microsoft Word Top

Some additonal questions:

What dlls need to be registered to use Word.


 
 
DeborahK





PostPosted: Visual Basic Express Edition, COM class error when using Microsoft Word Top

I have references to both Interop.Office.dll and Interop.Word.dll in my project that uses Word...
 
 
Mona_Alsayed





PostPosted: Visual Basic Express Edition, COM class error when using Microsoft Word Top

I have the same problem while trying to make an object of type word

The error do not appear with another offfice application

and I need help in that