如何在C#/ Vb.net中使用内容的文件来控制文本框

人气:337 发布:2022-09-22 标签: c# vb.net vb 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.

685