Share via

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.

Microsoft 365 and Office | Development | Other
{count} votes

Your answer

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