mickn66
Well-known member
- Joined
- Nov 2, 2002
- Messages
- 53
I have a simple vb.net form that has the following at the beginning of its class definition:
Dim wordApp As New Word.Application()
Dim actDoc As Word.Document = wordApp.ActiveDocument
I already have Word 2000 running with a document open. And yet, when I run my program, I get this error:
"An unhandled exception of type System.Runtime.InteropServices.COMException
occurred in pdfer.exe
Additional information: This command is not available because no document is open."
But, like I said, there is a document open! Any ideas why Im getting this error? Thanks.
Dim wordApp As New Word.Application()
Dim actDoc As Word.Document = wordApp.ActiveDocument
I already have Word 2000 running with a document open. And yet, when I run my program, I get this error:
"An unhandled exception of type System.Runtime.InteropServices.COMException
occurred in pdfer.exe
Additional information: This command is not available because no document is open."
But, like I said, there is a document open! Any ideas why Im getting this error? Thanks.