How do I host a Microsoft Office document inside a

2019-08-31 23:55发布

问题:

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?