G
goof1972
Hello All,
I have a VB.NET web application (1.1 framework) that creates a new Word
document through interop.word.dll. I have a Windows Server 2003 with
Office XP Professional installed. I've also installed the Office XP
PIA.
In my VB.NET application, I want to create a new Word document using
the following code:
Dim MSWord As New Word.ApplicationClass
Dim doc As Word.Document
doc = MSWord.Documents.Add()
Unfortunately, when I step through the code, I discover that once the
previous code bit was done, doc=Nothing. I was expecting a
Word.document object. There was no errors..nothing! I even checked the
Event Logs and could not find any error messages! Why is this
happening? It looks like a new Word document is not being created!
Any help would be appreciated.
Thanks in advance!
Brian
I have a VB.NET web application (1.1 framework) that creates a new Word
document through interop.word.dll. I have a Windows Server 2003 with
Office XP Professional installed. I've also installed the Office XP
PIA.
In my VB.NET application, I want to create a new Word document using
the following code:
Dim MSWord As New Word.ApplicationClass
Dim doc As Word.Document
doc = MSWord.Documents.Add()
Unfortunately, when I step through the code, I discover that once the
previous code bit was done, doc=Nothing. I was expecting a
Word.document object. There was no errors..nothing! I even checked the
Event Logs and could not find any error messages! Why is this
happening? It looks like a new Word document is not being created!
Any help would be appreciated.
Thanks in advance!
Brian