| Hyderabad Jobs | Book Website | ![]() |
I Love Hyderabad | Hyderabad Colleges |
| Home | Business Emails | Hyderabad Classifieds | Contact Us | |
| 7 Wonders of Hyderabad | Web Hosting | Yellow Pages | Our Network | |
Mastering PowerBuilder
Displaying HTML Pages using IE's ActiveX Automation Server from PowerBuilder's Window ActiveX Control If you are running your window ActiveX control in Internet Explorer version 3.0 or greater, your application can communicate with the ActiveX automation server (your window ActiveX control is running in this server), and access its attributes and methods. For example, your window ActiveX control can ask the ActiveX automation server to go back/next/home page, refresh, display the specified HTML page from the same or a different web server or close the browser. You need to instantiate ContextInformation class and get a reference to the IwebBrowserApp (ActiveX automation server) by calling the GetHostObject() function with an uninitialized OLEObject variable. The following code demonstrates the same technique and displays the home page of http://www.applied-software.com site:// Object: cb_html_using_activeX CommandButton in w_context
window String ls_ShortName This.GetContextService(
"ContextInformation", lcx_Info ) // Check whether the context is
ActiveX control lcx_Info.GetHostObject( lOLE ) If IsValid( lOLE ) Then Once we get the reference to IwebBrowserApp, you need to call Navigate() function with the
URL address. The following picture is the result of the above code:
|
| Copyright © 1996 - 2006 HamaraShehar.com Pvt. Ltd. All Rights Reserved.
Domain Registration, Website Design, Website Hosting by HamaraShehar.com |