I want to be able to embed a powerpoint presentation into a C# form (WinForms). Basically we have a 52′ monitor, and the idea is that in one corner we will have a PPT on loop, and then the other 3 corners will be displaying information from the program itself.
I had expected this to be straightforward, but it seems I am mistaken.
I had been advised to use the WebBrowser control, but this doesn’t work and instead treats the powerpoint file as a download, i.e. gives me a “Save, Open” dialog.
Any suggestions?
AK
You can just run PowerPoint, get the windows handle, and set a new parent window using the SetParent function.
All you need is the name of the window class of the PowerPoint window, but thanks to Spy++, this is no big deal.
Here’s a screenshot of PowerPoint running ‘inside’ of a custom application:
Full example (taken from here and modified for PowerPoint):