Environment versions
Network:
Windows 2000 Server
Hi,
I'm developing an applition for a customer that (still) uses office 97 in combination with Windows XP. In my Vb.net application (.net frameword 1.1) I want to open Word97. I use the following code, but I still catch the error "Object not set to an instance of an object.". When I use office 2003, I don't get any error. Does anybody have any idea what's going wrong?
Dim myword As Word.Application
If File.Exists(_file) Then
Try
myword = new Word.Application
CType(_word, Word._Application).Documents.Open(_file)
CType(_word, Word._Application).Visible = True
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
Else
MessageBox.Show("File not found!")
End If
Tia,
Sander
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only