在C#Windows窗体中预览.doc,.docx [英] Previewing .doc, .docx in C# Windows Forms

查看:49
本文介绍了在C#Windows窗体中预览.doc,.docx的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在用C#开发Windows窗体项目.现在,我可以使用ToolBox中的WebBrowser工具预览.PDF文件,但不能预览.DOC或.DOCX;而是打开一个提示,询问您是否要保存它或像IE一样打开它.现在,我想要的只是.DOC或.DOCX的预览.我尝试了Office.Interop程序集,但没有帮助.我检查了数十个网站,发现其中一个但iink坏了,而且只从.DOC中读取了其他内容.有什么工具或方法可以实现吗?

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?

谢谢.

推荐答案

的字控件.NET 是一篇不错的文章,即使它似乎已过时,但仍可用于MS Word 2010和.NET 4.0

Word Control for .NET is good article, even it seems dated but it's still work with MS Word 2010 and .NET 4.0

这篇关于在C#Windows窗体中预览.doc,.docx的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆