如何从asp.net中的SQL Server将文档文件检索到多行文本框中 [英] how to retrive doc file into multiline textbox from sql server in asp.net
本文介绍了如何从asp.net中的SQL Server将文档文件检索到多行文本框中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好,
我想要如何检索存储在sqlserver中的恢复文档,该文档必须在多行文本框中显示.向我发送指南或摘录
hello,
i want how to retrive resume documents which are stored in sqlserver which has to be display in multiline text box.send me guide lines or snippets
推荐答案
将Word文档转换为多行文本框中的可读文本将丢失文档的所有格式和布局.使用RichTextBox可能会更好.
从数据库中获取文档
使用com interop打开它
将文档另存为.RTF文件
将.RTF文件加载到richtextbox中.
Converting a word document to readable text in a multiline textbox is going to lose all the formatting and layout from the document. You may be better served using a RichTextBox.
Get the document from the database
Open it using com interop
save the document as an .RTF file
load the .RTF file into the richtextbox.
这篇关于如何从asp.net中的SQL Server将文档文件检索到多行文本框中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文