Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Launching an existing word doc from vfp
Message
 
 
À
09/11/1998 16:43:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00155902
Message ID:
00155953
Vues:
19
Imad,

Ignore the last message about ox.Visible = .t. that doesn't seem to work. I use oWord = createobject( "word.application" ) while automating Word97.

To launch the appropriate app for a registered file extension you use ShellExecute() instead. There are samples for this on my website too.

>Following the same example about launching a word doc from vfp, what if you know the full path and name of the file to open, but don't know that it is a word doc file. In this case, cannot use "createobj('word.basic')" before you can tell what type of file it is.
>
>I tried ox=getobject('c:\myfile.doc') which actually is supposed to know the type of application to launch (as explained in vfp help) but after that I could not reference the object ox to make the file visible. any ideas?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform