Versions des environnements
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
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement