Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Opening images
Message
 
 
À
12/01/2001 06:18:40
Rene Van Den Berg
Infertility Database Systems Ltd
Islington, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00462842
Message ID:
00462854
Vues:
16
>I display a jpeg on a form via an image control (file path stored in table field, not a general field). Now, how can I open this for editing (or viewing in IE)? I'm hoping to put some code in the doubleclick method of the image that opens it up (so just like double clicking it in Windows Explorer). Do I need some API calls?

Hello, Rene.
You can use Window Scripting Host to launch the associated app for this kind of image.
oShell = CreateObject( "WScript.Shell" )
oShell.Run( fullname_of_your_image_file, 1 )
You can get more information about WSH in a series of articles of George Tasker and Ed Rauh at www.vfug.org (think it started around september 2000).

Hope this helps.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform