Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word Automation
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Word Automation
Divers
Thread ID:
00500349
Message ID:
00500349
Vues:
56
I am simply trying to open a word document in an OLE control in foxpro. Im not sure the proper way to do this. Every thing in the following sample works until I try to open the existing document. Am I on the right track or should I be approaching this from another angle?

THISFORM.ADDOBJECT('OleLetter','OleControl','WordDocument')
THISFORM.oleLetter.LEFT=30
THISFORM.oleLetter.TOP=80
THISFORM.oleLetter.HEIGHT=244
THISFORM.oleLetter.WIDTH=410
THISFORM.oleLetter.VISIBLE=.T.
oWordObj=THISFORM.OleLetter.object.application
owordobj.Documents.Open FileName:="c:\foxword\test.doc"
THISFORM.OleLetter.DOVERB(0)
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform