Previewing .doc, .docx in C# Windows Forms [closed]

拟墨画扇 提交于 2020-02-23 12:41:31

问题


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

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