Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Opening images
Message
From
12/01/2001 07:46:59
 
 
To
12/01/2001 06:18:40
Rene Van Den Berg
Infertility Database Systems Ltd
Islington, United Kingdom
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00462842
Message ID:
00462854
Views:
17
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform