Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Ole & Word newbie problem
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00100028
Message ID:
00100207
Vues:
57
>>>I've written a wee bit of code to test some OLE concepts but can't get my abc = createobject("Word.basic") command to do anything.
>>>I'm using MS Word 7
>>> VFP 3
>>> Win 95
>>>any ideas?

Hi, the following code is from one of our programs(VFP5) which simply opens the Word 97 document on a Win95 system:

WAIT "Please wait for Word to load" WINDOW AT 20,30 NOWAIT NOCLEAR
oWord=createobject("Word.Basic")
oWord.ChDir(cWORDPATH)
oWord.FileNewDefault
oWord.AppMaximize
oWord.AppShow
WAIT CLEAR
ntemp=MESSAGEBOX("Make sure Word has been unloaded")

Hope it helps.
Petras

PS. Any chance of a reply to my question regarding Outlook?
Petras Virzintas
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform