Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Running an HTML from within VFP
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00143419
Message ID:
00143816
Views:
32
>>Bret,
>>
>>On my website is an article (Q&A, General, qGEN010) showing how to use ShellExecute(). It'll open whatever default browser the user has set.
>>
>>
>>>I have the following in a procedure for one of my menu choices:
>>>
>>>LOCAL oIE
>>>oIE = CREATEOBJECT( "INTERNETEXPLORER.APPLICATION" )
>>>oIE.Navigate( "http://ammo-eng" )
>>>oIE.visible = .T.
>>>
>>>This runs internet explorer OK but will not work in the real world because I make the assumption that they have IE. Does anyone have any VFP code out there that figures out from the system (the persons computer) if they have a browser and how to call it with the parameter of http://ammo-eng, so the persons own default browser will come up and show the web page.
>>>
>>>TIA
>
>Thanks David, I will look at your site and your examples....

You can also look at using ShellExecute() to launch an HTTP reference on the default browser. This uses the Class registry to fire the HTML; your only problem becomes determining if a browser has been installed, and that can be done by looking for the Registry key HKEY_CLASSES_ROOT\.htm or HKEY_CLASSES_ROOT\.html to make certain that Windows knows how to deal with the appropriate file type.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform