Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word automation
Message
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Word automation
Versions des environnements
Environment:
VB.NET 1.1
OS:
Windows XP
Network:
Windows 2000 Server
Divers
Thread ID:
01088379
Message ID:
01088379
Vues:
78
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
Fil
Voir

Click here to load this message in the networking platform