Insert ActiveX Control Into Powerpoint slide
I'd like to insert a custom ActiveX control into a Powerpoint slide. I've created the custom control and registered it, and tested that it works. I can easily add the custom control to a UserForm, but can't add it directly to the slide (as per the other controls under Developer Tab -> Controls).
Is it possible to add the custom ActiveX control directly to the slide?
If not, is it possible to embed the UserForm directly to the slide?
Thanks!
I am using Office 2016 and the ActiveX Control under the Developer tab just worked fine. Please see the screen shots as reference.
The command button won't work under "Normal" view, as it's in design mode at that point. It should however work fine under "Reading View" or "Slide show".
After the button click:
Update:
Based on the feedback received, thought it's worthwhile to add an example of using custom ActiveX control as well.
Note that to successfully register the control, the PowerPoint Application needs to be opened with administrator privilege.
Also note that if the DLL is made in .NET, you need to expose it to COM. You may refer to the Guidelines for exposing .NET types to COM for more information.
Step 1 - more controls
Step 2 - register custom control
Step 3 - select the intended custom ActiveX control
Step 4 - click ok
Step 5 - drag it on the body of the PowerPoint slide based on appropriate area of the control
Step 6 - it's ready - run the slide to see your ActiveX control working!
Step 7 - get the result from the control
链接地址: http://www.djcxy.com/p/96640.html上一篇: 如何将热图添加到quantmod :: chart
下一篇: 将ActiveX控件插入幻灯片幻灯片