Click here to Skip to main content
15,910,130 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I am using ASP.NET with C# with back end as sql server 2000.

I want to store and retrieve MS Word document 2003 or 2007 using ASP.NET with C#.
Can anyone give an example which helps me?
Posted
Updated 30-Jun-10 22:45pm
v2
Comments
R. Giskard Reventlov 1-Jul-10 5:00am    
You need to clarify: do you mean to store the actual document in the database so as to be able to display/edit at a a later time or just the content of the document? If the entire document do you really want to store the document in the database or in a folder with a pointer to the location in the database?
mcapatna 1-Jul-10 8:13am    
hello Sandeep
do you want to Import/Export the contains of form/database to Word/Execl/PDF ? Please update your query soon.

Assuming you mean to store the documents in the database, then you need to store them as blobs.

http://articles.techrepublic.com.com/5100-10878_11-5766889.html[^]
 
Share this answer
 
you need to take a help of BLOB to store word into SQL server.
The sql server has IMAGE datatype. use that for storing Word file.
use this

hope this helps...:rose:
 
Share this answer
 
Comments
Ankur\m/ 3-Jul-10 2:58am    
I think this is what Mark already said. Did you add anything extra?

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