Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Execute Word from a File Name?
Message
De
05/04/2002 10:15:46
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
05/04/2002 09:56:36
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00641421
Message ID:
00641437
Vues:
21
>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 start &Field_That_Contains_Filename
Or: copy the function in FAQ #8134, and then issue:
RunDoc(fullpath(Field_That_Contains_Filename))
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform