将word文档(docx)加载到richtextbox中

将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.