Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Launching an existing word doc from vfp
Message
 
 
To
09/11/1998 16:43:28
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00155902
Message ID:
00155953
Views:
20
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform