Include PowerPoint viewer into my WPF application

风格不统一 提交于 2019-11-30 10:37:15

Not the cleanest of solutions, but one we had to go for a few years ago in a .NET 1.1 application.

1.) Provided that there is any application installed on the client system that a) can open Powerpoint files and b) has also installed a browser plugin to view them inside a browser window, you could use the WebBrowser control and Navigate() to the Powerpoint file.

If there is, for example, a MS office or OpenOffice installation on the client system, this would allow you to view Powerpoint presentations inside, say, Internet Explorer.

2.) An alternative approach was to use the Microsoft Powerpoint Viewer and embed in a WinForms control. Unfortunately we had to use a very old version, I think for Office 2000, because newer version did not support embedding anymore as Microsoft told us. This might have changed in the meantime, but I do not know about that.

Sebi

I just know that with DevExpress 12 it is possible to integrate PowerPoint, Excel, Word and Outlook as a Control. So you can put a PowerPoint Control on your form like a Textbox. DevExpress is a really nice framework but the disadvantage is, that one license costs 900 dollars.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!