You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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. In PowerPoint Developer tab, button "More Controls" opens the following window, which lists the available controls to insert. As expected, WebView2 is not here.
Creating an ActiveX control in .NET (a user control with a WebView2 object on it) and exposing that to PowerPoint would work?
The planned development environment is .NET framework 4.7.2 and latest PowerPoint version.
This discussion was converted from issue #1353 on October 10, 2023 18:09.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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. In PowerPoint Developer tab, button "More Controls" opens the following window, which lists the available controls to insert. As expected, WebView2 is not here.
Creating an ActiveX control in .NET (a user control with a WebView2 object on it) and exposing that to PowerPoint would work?
The planned development environment is .NET framework 4.7.2 and latest PowerPoint version.
Beta Was this translation helpful? Give feedback.
All reactions