Information générale
Catégorie:
COM/DCOM et OLE Automation
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
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