问题
I'm developing a windows forms project in c#. For now I can preview .PDF files with WebBrowser tool in ToolBox but that doesn't preview .DOC or .DOCX; instead it opens up a prompt ask either you want to save it or open in just like IE does. Now what I want is simply a preview of a .DOC or .DOCX. I tried this with Office.Interop assemblies but didn't help. I checked tens of websites and found one but iink was broken and also there were only reading from a .DOC nohing else. Is there any tool or way to implement this?
Thank you.
回答1:
Word Control for .NET is good article, even it seems dated but it's still work with MS Word 2010 and .NET 4.0
回答2:
This guy has a PreviewHandler for Winforms. Works like a charm!
来源:https://stackoverflow.com/questions/7787658/previewing-doc-docx-in-c-sharp-windows-forms