Hi,
I have a piece that works perfectly on Word 2002, but cannot even open a document in word 97 for whatever reason. The code is done in VB .net.
I started with:
Dim WordObject as Word.Application
Dim WordDoc as Word.Document
WordObject = CreateObject("Word.Application")
WordObject.Visible = True
After this, I tried to open a document using add and open, but neither could open a document. Everytime it ran the code, it gave the error "object reference not set to an instance of an object".
any ideas about what the problem is?
Thanks
I have a piece that works perfectly on Word 2002, but cannot even open a document in word 97 for whatever reason. The code is done in VB .net.
I started with:
Dim WordObject as Word.Application
Dim WordDoc as Word.Document
WordObject = CreateObject("Word.Application")
WordObject.Visible = True
After this, I tried to open a document using add and open, but neither could open a document. Everytime it ran the code, it gave the error "object reference not set to an instance of an object".
any ideas about what the problem is?
Thanks