1. Camilla Wind
  2. PowerBuilder
  3. Friday, 23 February 2018 12:01 PM UTC



I’m developing a standard powerbuilder application.

The problem is that  Microsoft Web Browser in OLE custom control. Uses a default browser and it’s  IE 7.

I use the OLE custom control and calls for an webapplication that uses googlemaps.

Googlemaps has now started to tell us that this version of the browser is missing features.

How do I  change  “Microsoft Web Browser in OLE custom control” to use an other version of the browser?

Se picture of my code.


I've just tried to use the examplecode from the question "DW OLE control & WebBrowserControl" where a used my above URL instead.

I've got the same error message from the application.

maybe some one knows what to do.




camilla wind


Accepted Answer
Roland Smith Accepted Answer Pending Moderation
  1. Friday, 23 February 2018 14:55 PM UTC
  2. PowerBuilder
  3. # Permalink

Here is the base documentation:


So it will work from the IDE, update the registry for PB###.EXE.

  1. Camilla Wind
  2. Monday, 26 February 2018 11:38 AM UTC
Thank you all for you help.

This solution worked for us.




Camilla Wind

  1. Helpful
There are no comments made yet.
José Gasparini Accepted Answer Pending Moderation
  1. Wednesday, 3 October 2018 16:35 PM UTC
  2. PowerBuilder
  3. # 1

I did the change in the Windows register, but didn't fix the problem. I have Windows 10, Do you know if other steps to do for Windows 10 ?





There are no comments made yet.
René Ullrich Accepted Answer Pending Moderation
  1. Monday, 26 February 2018 07:34 AM UTC
  2. PowerBuilder
  3. # 2

Our workaround without a change to the registry: We use a dynamically created page that shows the map in an iframe. You can set a compatibility mode in this page.

// you navigation code:

ls_url = ...

ole_control.object.Navigate ("about:blank?" + ls_url)


// Event documentcomplete of ole_control

IF left (aa_url, 12) = "about:blank?" THEN
    ls_url = Mid (aa_url, 13)

    ls_html = '~r~n' + &
                '~r~n' + &
                '~r~n' + &
                '~r~n' + &
                '~r~n' + &
                '~r~n' + &
                '~r~n' + &
                '~r~n' + &
                '~r~n' + &
    Object.Document.Open ()
    Object.Document.Write (ls_html)
    Object.Document.Close ()



  1. Moshe Tangi
  2. Monday, 8 April 2019 12:08 PM UTC
Hi Rene ,

I have some problem with getting / sending data to a web application ( it has an API functions for that )

my app is a desktop one .

you said something about an iframe ..

have any example ?

Thanks a lot

  1. Helpful
  1. René Ullrich
  2. Monday, 8 April 2019 12:25 PM UTC
Hi Moshe,

I don't know if may solution works for you. It was made for the Google Maps problem.

Unfortunately my code example above is not readable because the browser parse my tags. :-(

Here again my example (only ls_html assignment).

Please add the angle brackets for tags in this example. I don't know how to specify to show it right in the forum.

ls_html = '!DOCTYPE html~r~n' + &

'html~r~n' + &

'head~r~n' + &

'meta http-equiv="X-UA-Compatible" content="IE=edge" /~r~n' + &

'style~r~n' + &

'html, body, iframe {height: 100%; margin: 0;}~r~n' + &

'/style~r~n' + &

'/head~r~n' + &

'body~r~n' + &

'iframe src="' + ls_url + '" width="100%" height="100%" frameborder="0" style="border:0"/iframe~r~n' + &

'/body~r~n' + &

  1. Helpful
There are no comments made yet.
Paco Lianez Accepted Answer Pending Moderation
  1. Friday, 23 February 2018 12:38 PM UTC
  2. PowerBuilder
  3. # 3
  1. Glenn Scamman
  2. Thursday, 14 June 2018 17:06 PM UTC
Many thanks to Paco for pointing out this resource! It saved my behind today. I spent lots of time locating a nice charting tool to use inside our PB app via the MS Web Browser OLE control, but ran into a snag with a scripting error message that popped up before every chart. Changing the "document mode" inside the html pages I'm generating was a very easy fix. I was about to start looking for another product and start the learning curve all over again! The blog itself is a great one. Roland's resource was a good one too, but since I have control over the html, this was easier than altering the registry.
  1. Helpful
There are no comments made yet.
  • Page :
  • 1

There are no replies made for this question yet.
However, you are not allowed to reply to this question.