如何在富文本框中打开word doc [英] How to open word doc in rich text box

查看:786
本文介绍了如何在富文本框中打开word doc的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





如何在富文本框中打开word doc。



帮帮我。



感谢您的建议。

Hi,

How to open a word doc in rich textbox.

Help me out.

Thanks in advice.

推荐答案

你不能,期间。不在 RichTextBox



富文本框基于更简单的富文本格式,Word不是: https://en.wikipedia.org/wiki/Rich_Text_Format [ ^ ]。



您可以学习如何解析Word(打开XML)文档,将其映射到其他文档,任何东西,但是一旦你使用这些数据显示在 RichTextBox 中,它就不会是Word文档,甚至不会远程关闭。请注意,Word是专有应用程序,不提供在其他应用程序中使用的任何库,但我们假设您设法创建复制所有Word功能的软件,至少作为只读软件,纯查看器,然后是,打开Word,很有可能,RTF,但问题是......这个软件不会是 RichTextBox ,甚至没有远程关闭。



-SA
You cannot, period. Not in RichTextBox.

Rich text box is based on much simpler Rich Text Format, and Word is not: https://en.wikipedia.org/wiki/Rich_Text_Format[^].

You can learn how to parse Word (Open XML) document, map it to other document, anything, but once you use this data to show in RichTextBox, it won't be a Word document, not even remotely close. Note that Word is proprietary application which does not provide any libraries to be used in other applications, but let's assume that you managed to create software replicating all Word functionality, at least as a read-only software, a pure viewer, then yes, open Word, and pretty likely, RTF, but the trouble is… this software won't be RichTextBox, not even remotely close.

—SA


这篇关于如何在富文本框中打开word doc的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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