WebView2 OLE class name

Adrian Moisii 11 Reputation points
2021-06-03T18:30:47.683+00:00

Hi there,

I was wondering if it's possible to use WebView2 in a VSTO PowerPoint add-in, by adding it on a slide using Shapes.AddOLEObject Interop function. Shapes.AddOLEObject requires the ClassName of the inserted object and can't figure out if Webview2 expose this by default.
I managed to add it to a WPF form, shown during PowerPoint slideshow. Now I need to add the WebView2 browser directly into a slide.
Creating an ActiveX control in C# .NET (a user control with a WebView2 object on it) and exposing that to PowerPoint would work?

The planned development environment is C# .NET framework 4.7.2 and latest PowerPoint version.

Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,970 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.