PowerPoint and WPF

廉价感情. 提交于 2019-12-19 04:24:28

问题


I really need a way of loading a .ppt document in my wpf application. Can anyone give me a hint, code sample?


回答1:


Checkout the following discussion thread. Also Dr.WPF got an interesting article that might help you as well: Hosting Office in WPF Application However consider license costs will be quite high for your scenario...




回答2:


According to this artice the DSO Framer is no longer supported. Have to look for something else.




回答3:


You may need to elaborate a bit more on your particular need to get a practical answer. I don't think hosting PowerPoint (ppt) is a good option because it requires ppt to be installed on the target machine.... and if the target machine has ppt then you can use its API to save the document as HTML and open it in a WebBrowser control.

If the target machine doesn't have powerpoint you may look into some online file conversion service and try hooking up there to convert to HTML and still use WebBrowser control.

I definitely don't recommend wasting your time with DSOFramer - it's very unstable at best and it will just feel like you're one step away from making it work for a while but it doesn't work.

Another option is of course to write your own parser for ppt files, the OfficeOpenXML version of the files is definitely "parseable". I've done that for Word docx and it's relatively easy to get the course data out of the document - say shapes, text... - but the devil there is in the details. There are a zillion little features to implement.



来源:https://stackoverflow.com/questions/594052/powerpoint-and-wpf

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