How do I host a Microsoft Office document inside a Winforms application?

ぃ、小莉子 提交于 2019-12-12 02:53:25

问题


Anyone that can recommend an Word, Excel and PowerPoint viewer (no editing), that can be used as a component in Winforms?

The viewer must support Office 2003, 2007 and 2010.

The target is .NET 4.0.

A free one is preferred ;-) But if its commercial its ok.

Thanks in advance!


回答1:


Generally your best approach to this is to have your users obtain the appropriate read-only viewers from Microsoft.

Word Viewer

Excel Viewer

PowerPoint Viewer

This is how the vast majority of document management systems work; they rely on the computer's file associations to target various readers. So all you have to do is provide a link.




回答2:


One alternative is to use the WebBrowser control in WinForms in combination with Google Docs Viewer?



来源:https://stackoverflow.com/questions/5147872/how-do-i-host-a-microsoft-office-document-inside-a-winforms-application

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