RSX
Mar 3rd, 2003, 02:43 PM
I'm pretty new to VB.Net so take it easy on me :D
I'm on Win2K with Office 2000 and all I'm trying to do is open a work document. I've added a reference to Office 9.0 and Word 9.0 and this is the code I have.
Dim wordApp As Word.Application
wordApp = new Word.ApplicationClass
For some reason I can't use Word.Application in the above statement.
I've also tried this:
Dim wordApp as Word.Application
wordApp = CreateObject("Word.Application")
In both cases I get exceptions thrown :( Here are the messages I get:
Top Example:
An unhandled exception of type 'System.IO.FileNotFoundException'
Additional information: The specified module could not be found.
Bottom Example:
An unhandled exception of type 'System.Exception' occurred in microsoft.visualbasic.dll
Additional information: Cannot create ActiveX component.
Please help :confused:
I'm on Win2K with Office 2000 and all I'm trying to do is open a work document. I've added a reference to Office 9.0 and Word 9.0 and this is the code I have.
Dim wordApp As Word.Application
wordApp = new Word.ApplicationClass
For some reason I can't use Word.Application in the above statement.
I've also tried this:
Dim wordApp as Word.Application
wordApp = CreateObject("Word.Application")
In both cases I get exceptions thrown :( Here are the messages I get:
Top Example:
An unhandled exception of type 'System.IO.FileNotFoundException'
Additional information: The specified module could not be found.
Bottom Example:
An unhandled exception of type 'System.Exception' occurred in microsoft.visualbasic.dll
Additional information: Cannot create ActiveX component.
Please help :confused: