
Bart Syryn (Partner) asked a question.
Hello,
In our application we have a form and on that form there's a webbrowser-component to show google-maps. That's working for years without any problem. The webbrowser uses by default the old internet-explorer, and now google maps give me a warning that browser isn't supported.
Information about the warning:
Error Messages | Maps JavaScript API | Google Developers
The suggested solution with adding in the metaheader doesn't solve the problem.
<meta http-equiv="x-ua-compatible" content="IE=edge">
So I was looking at using the new webview2 component.
I've added the following three dll to my assemblies, version 1.0.1072.54 - 32 bit:
Microsoft.Web.WebView2.Core.dll
Microsoft.Web.WebView2.WinForms.dll
Microsoft.Web.WebView2.Wpf.dll
And then I could add the webview2 component to my toolbox and place it on a form.
Running that form, the component doesn't work. I don't get any errors, but I also don't see the component (changed color etc).
Has anyone succeeded running that component (I have OE11.3 and OE11.6 32 bit).
Or another solution is to stick with current webbrowser component, but then I need to solve the warning about unsupported browser.
I hope someone can help me with this.
Regards,
Bart S
An alternative option may be to embed Chromium into your application. Here's a recording of a webinar from @Mike Fechner (Consultingwerk) who may also be able to give more background himself.
https://www.consultingwerk.com/news/blog/consultingwerk/2021/03/23/pug-uk-ireland-webinar-gui-meets-web-with-chromium-embedded
Hi, I'll have a look at it, but I've read that it isn't easy to implement an a bit unstable. I only one to show a html-pages that is locally on the client-pc and then shows the google maps page.
Besides the 3 assemblies, have you installed the WebView2 runtime as well?
Take a look here: https://developer.microsoft.com/en-us/microsoft-edge/webview2/