Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
2.00/5 (2 votes)
hello ,
i want to retrive file(doc,pdf) from database (sqlserver) into multi line text box can u guide me or snippets .
Posted
Comments
Sergey Alexandrovich Kryukov 14-Feb-12 21:52pm    
This is not a question. What have you done so far? What's the problem? Do you realize that presenting doc or pdf text in a text box would be a loss of information such as formatting?
--SA
Mycroft Holmes 14-Feb-12 22:15pm    
This must be a homework question. I have seen this asked multiple times this week.

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.. :)
 
Share this answer
 
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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900