Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word GetObject() - WHACKED?????
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00538237
Message ID:
00538243
Vues:
8
>Sitting here again in a VFP training class and have encountered something very weird, no, not a mirror. < g >
>
>Using GETOBJECT with a Word 2000 document loads the doc up on my laptop that has Office 2000 Professional installed. BUT, the student machines just have Word 2000 installed, NOT the entire Office suite. The problem is that the following code works fine on my laptop BUT brings up Word, but without the document loaded.
>
>oMyWord = GETOBJECT("C:\VFPTraining\letter.doc")
>
>Yes, the document exists on the student machine and my laptop.
>
>The question is, does GETOBJECT() only work correctly when full blown Office is installed or should it work if only Word is installed??

Does the GetObject work if you follow it with the parameter telling what to bring up?

oMyWord = GETOBJECT("C:\VFPTraining\letter.doc","Word.Application")

Could be .doc is not know what to bring up. Just a guess.
Bret Hobbs

"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform