将word文档(docx)加载到richtextbox中 [英] loading a word document(docx) into a richtextbox

查看:258
本文介绍了将word文档(docx)加载到richtextbox中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,我有一个63页的文档需要在richtextbox上显示。

hello, i have a 63 page document that i need to display on a richtextbox.

我不知道怎么加载它,我试过'streamreader'路线,但它只适用于文本文件。

i dont know how to load it, i've tried the 'streamreader' route but it only works on text files.

一直在网上搜索,似乎没有人知道如何做到这一点。我正在使用Silverlight 4和混合4。

been searching all over the net and no one seems to know how to do this. am using silverlight 4 with blend 4.

如果any1知道怎么做,我们将非常感激。

if any1 knows how to do this it will be highly appreciated.

Terra。

推荐答案

主要障碍是阅读Word文档。这是一个网站,提供了如何使用Document SDK读取Word文档的示例:  http://bytescout.com/products/developer/documentsdk/read-paragraph-formatting-word.html

将文档存入内存后,可以将文本输出到RichTextBox的。希望有所帮助。

Once you have the document in memory, you can output the text to your RichTextBox. Hope that helps.


这篇关于将word文档(docx)加载到richtextbox中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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