如何显示PDF或Word的DOC / DOCX里面的WinForms窗口? [英] How to display PDF or Word's DOC/DOCX inside WinForms window?

查看:128
本文介绍了如何显示PDF或Word的DOC / DOCX里面的WinForms窗口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道什么是在我的C#WinForms应用程序,以显示内部形式的PDF / DOC文档的最佳选择。

I'm wondering what's the best option to display a pdf/doc document inside form in my c# winforms app.

这控件应只允许做显示预览。 Edtiting文件应该被禁止。

This control should only allow do display preview. Edtiting documents should be forbidden.

我在寻找免费的解决方案。

I'm looking for free solution.

最好的办法是附上几句单独的* .dll文件,以解决方案,但它不是一个要求。

The best option would be to attach a few separate *.dlls to solution but it's not a requirement.

推荐答案

我写的东西,可以通过采取的WinForms WebBrowser控件来实现这个功能的Word文档。但愿它可能对你有好处:

I wrote something that can do this for Word Documents by taking advantage of the WebBrowser control for WinForms. Hopefully it might do you some good:

http://codinglight.blogspot.com/2008/10/simple-docbrowser-control.html

这篇关于如何显示PDF或Word的DOC / DOCX里面的WinForms窗口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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