Kbase 21422: How to use the Microsoft Web Browser ActiveX with 4GL
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  5/14/2010 |
|
Status: Verified
GOAL:
How to use the Microsoft Web Browser ActiveX with 4GL
GOAL:
How to use the Microsoft Web Browser ActiveX control with ABL
FACT(s) (Environment):
OpenEdge Category: Language (4GL/ABL)
Progress 9.x
OpenEdge 10.x
Windows
FIX:
Follow these steps to use the Microsoft Web Browser ActiveX object:
1) Using the AppBuilder, add the ActiveX object to a container, that is, a frame, or a window.
2) Depending on how you want to use this ActiveX object, you would select an event, method, or property from the ActiveX.
EXAMPLES:
Add a button to the container and then add the following line(s) of code for its CHOOSE event:
- To load a particular HTML page or web site, specify the URL with the WebBrowser:Navigate method:
chCtrlFrame:WebBrowser:Navigate( "http://www.progress.com/" ).
- To issue an HTTP POST transaction specify the URL and the Post data with the WebBrowser:Navigate method:
DEFINE VARIABLE r1 AS RAW NO-UNDO.
PUT-STRING(r1, 1) = "Test".
chCtrlFrame:WebBrowser:Navigate( "http://www.progress.com",,,r1 ).