我想在Windows窗体上显示Word文件 [英] i want show word file on windows form

查看:99
本文介绍了我想在Windows窗体上显示Word文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

场景:
我想在Windows窗体中的任何控件中显示word文件.我不想将其转换为HTML,然后使用Webbrowsercontrol进行显示.

C#.net中是否存在像单词查看器这样的控件?

谢谢
Prasad

Scenario:
I want to show word file on windows form in any control.I don''t want want to convert it to HTML and then show it using Webbrowsercontrol.

Is there any control like word viewer exist in C#.net

Thanks
Prasad

推荐答案

好像有

Word注册了 OLE [ ^ ]对象.但是,这需要在计算机上安装Word.这就是写字板与插入对象功能一起工作的方式.

不知道如何在C#中完成此操作,但是可能首先查看 OLE数据库教程 [ ^ ]
Word registers an OLE[^] object, which you can embed. This requires Word to be installed on the computer however. This is how WordPad works with the Insert Object functionality.

Not sure how this is done in C#, but perhaps start by looking at the OLE DB Tutorial[^]


这篇关于我想在Windows窗体上显示Word文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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