How would I call WebView2 and other modern winmd features in VBA
Asked Answered
D

1

5

I would like to embed a modern WebView2 component (Edge Chromium Browser Control) inside an old-style VBA UserForm.

I surmise that I would need the following installed on the system:

  • Edge Chromium Broswer
  • Webview2 SDK

While I have the Edge Chromium Browser installed I am unsure how to install the Webview2 SDK outside of the context of a specific Visual Studio Project. To use it in a VBA solution it needs to reference some sort of global system-wide file?

Then, apparently the type library which contains the functionality we need to embed the Edge browser is Windows.Web.winmd. I presume I would need to "reference" that in some way but I am not sure how...

Deuteranopia answered 18/6, 2020 at 7:41 Comment(4)
Does this answer your question? Late Binding vs Early Binding in VBA - (CreateObject() vs New)Gang
@Gang do the winmd files behave the same to VBA as COM controls as long as you can reference a file?Deuteranopia
Your question is "I presume I would need to "reference" that in some way but I am not sure how..." - and the link explains the two possibilities - early and late binding. i.e. to use a control on the formGang
I am well acquainted with early and late binding. What string should I use for late binding via CreateObject? I tried Windows.Web but this failed?Deuteranopia
D
1

The closest thing I have found to answering this question is the following set of dlls:

http://vbrichclient.com/#/en/Downloads.htm

Deuteranopia answered 20/3, 2022 at 13:56 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.