如何在C#/ Vb.net中使用内容的文件来控制文本框 [英] How to coppy content's file word to control textbox in C#/Vb.net

查看:62
本文介绍了如何在C#/ Vb.net中使用内容的文件来控制文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!

我想获取另一个文件字的内容来控制文本框....

所以,如果文件字有表格设计,我不能得到这张桌子,所以,我只能得到它的性格...

什么方式可以帮助我...

我没有代码,只复制和过去,所以还没有...

是否有可能???

非常感谢...

Hi all!!!
I want to get content of another file word to control textbox....
So, if file word have table desgin, i can't get this table, so, i only get character of it ...
What way can help me for it...
I not code for it, only copy and past,so not yet ...
is it possible ???
Thanks so much...

推荐答案

不,不是真的。文本框保存文本 - 顾名思义 - 并且没有任何重要的格式化设施。



相反,使用RichTextBox可能会更好 - 至少可以处理格式化的数据和表格。如果您使用谷歌,您应该能够找到将DOC / DOCX数据转换为RTF格式的代码。
No, not realy. Textboxes hold text - as the name implies - and don't have any significant formatting facilities.

Instead, you might be better off with a RichTextBox - that can at least cope with formatted data and tables. If you google, you should be able to find code to convert DOC/DOCX data to RTF format.


这篇关于如何在C#/ Vb.net中使用内容的文件来控制文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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