如何使用asp.net从sqlserver将文件内容显示到文本框(多行) [英] how to display file content into text box(multiline) from sqlserver using asp.net

查看:63
本文介绍了如何使用asp.net从sqlserver将文件内容显示到文本框(多行)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

i希望从数据库(sqlserver)中检索文件(doc,pdf)到多行文本框中,可以引导我或片段。

hello ,
i want to retrive file(doc,pdf) from database (sqlserver) into multi line text box can u guide me or snippets .

推荐答案

按照以下步骤操作..

1)从数据库中获取文件。

2)将其存储在特殊文件夹中。

3)使用FileStream对象中的文件IO读取所需/整行,

将其显示在文本框中..



如果您愿意有关编码的任何问题只需联系我...





一切顺利..如果你喜欢我的答案,请接受答案.. :)
Follow the following steps..
1) Fetch the file from database.
2) Store it in special folder.
3) Read the required / whole line using file IO in FileStream object and
show it in textbox..

If you will get any problem regarding coding just contact me...


All the best.. Accept the answer if you like my answer.. :)


如果您正在检索Adobe Reader .PDF的Word .DOC文件,则无法在TextBox中显示上下文。 TextBox不知道.DOC或.PDF是什么,也不知道如何呈现内容。
If you're retrieving a Word .DOC file of Adobe Reader .PDF, you can NOT display the context in a TextBox. The TextBox has no idea what a .DOC or .PDF is and has no idea how to render the content.


您可以参考以下链接



http://www.daniweb.com/web-development/aspnet/threads/265281/copy-word-document-into-textbox-in-c-web-application [ ^ ]



http://www.dotnetspider.com/resources/43959-How-read-content-from-PDF-ASP.NET.aspx [ ^ ]



希望这有助于
You can refer the below links

http://www.daniweb.com/web-development/aspnet/threads/265281/copy-word-document-into-textbox-in-c-web-application[^]

http://www.dotnetspider.com/resources/43959-How-read-content-from-PDF-ASP.NET.aspx[^]

Hope this helps


这篇关于如何使用asp.net从sqlserver将文件内容显示到文本框(多行)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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