Quantcast
Channel: SCN : All Content - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 2935

How to connect to chrome browser in Powerbuilder

$
0
0

Hi all,

 

I would like to connect to chrome browser instead of internet explorer.

 

Please find my sample code below.

 

IF IsWindow(il_hwnd) = 0 THEN
ioo_so_oleobject.DisconnectObject()
  li_rc = ioo_so_oleobject.ConnectToNewObject("internetexplorer.application")
  IF li_rc <> 0 THEN
  RETURN FALSE
END IF


String ls_ie
ls_ie = ioo_so_oleobject.Fullname()
  ls_ie = ioo_so_oleobject.name

 

If i use the below code, its not working..


li_rc = ioo_so_oleobject.ConnectToNewObject("chrome.application")

 

li_rc return -2(-2 = Class name not found).

 

Could you please suggest upon this.. (how to connect to chrome instead of IE)

 

Regards,

Krishna


Viewing all articles
Browse latest Browse all 2935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>