Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to view a .JPG file
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00534263
Message ID:
00534308
Vues:
10
>HI,
>
>I want to add a button at my product screen layout, click on it, that will display/view a .JPG file (product's photo).
>I don't want to display the .JPG file in FoxPro (cause that will not in full size).
>And i'm not sure what "view photo application" had install at that workstation.
>(i find that, when i double-click on a photo file in Window, it will open it default from ACDSee application)
>
>How can i open it by default application, while click on this button ??
>
>
>Thank a lot,
>HS

In addition to the API call, the Windows Script Host's WScript.Shell Object's Run method can do it and more. For example, it can be instructed to have the calling program wait until the called application is closed
* lcfile is the file to run
oShell = CREATEOBJECT('WScript.Shell')
oShell.Run(lcfile)
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform