Kbase 18822: How to open Internet Explorer from the 4GL using ActiveX?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/15/2008 |
|
Status: Verified
GOAL:
How to use ActiveX Automation to invoke Internet Explorer to display a web page
GOAL:
How to open a URL from the 4GL using ActiveX
GOAL:
How to open Internet Explorer from the 4GL using ActiveX
GOAL:
How to use COM objects to integrate Internet Explorer
FACT(s) (Environment):
Progress 8.x
Progress 9.x
OpenEdge 10.x
Windows
FIX:
The following is a basic code required to start Internet Explorer and point it to a web page.
/* Create the com object and make it visible */
DEFINE VARIABLE oExplorer AS COM-HANDLE NO-UNDO.
CREATE "InternetExplorer.Application" oExplorer.
oExplorer:Visible = True.
/* Tell Internet Explorer what Web Page to Display */
oExplorer:Navigate("www.progress.com").
PAUSE.
/* Tell Internet Explorer to quit, and clean up */
NO-RETURN-VALUE oExplorer:Quit().
RELEASE OBJECT oExplorer.