Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Execute Word from a File Name?
Message
 
To
05/04/2002 09:56:36
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00641421
Message ID:
00641428
Views:
12
>Hi!
>
>I have word document(s) (RTF) file/path names stored in VFP memo fields.
>
>Is there any way I can launch Word (and load the file) from within VFP by "executing" the file name, utilising its file association?
>
>I appreciate that this could be done using automation but I wondered whether there was a way of simply "executing" the file, in the same way that clicking on the file would launch Word and load the file.
>
>Thanks!
>
>-=Gary

RUN/N mywordpath\winword.exe myfilepath\mydocument.rtf

You can add the code to build and execute this command into, say DblClick event of the editbox or textbox.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Reply
Map
View

Click here to load this message in the networking platform