Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 21st, 2006, 11:05 PM
Authorized User
 
Join Date: Mar 2006
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default Word Doc from Database

Word Doc from Database


Hi i am creating an application that help the user to upload his word documents to an sql server database
i want to bind a datagrid to the database so the user can see what he uploaded. also, when the user clicks on the document title it will load it in Microsoft Word so he can read it.

any idea how to bind the datagrid to the documents stored in the databse and how to load a document into Microsoft word?


Nina

Happy Programming :)
__________________
Happy Programming :)
 
Old August 22nd, 2006, 07:12 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Hmm. This is an intersting question because, presumably, you are storing the word doc in a binary field inside of SQL which means you can't bind a grid to that column and have it display anything worthwhile. What you would actually have to do is, before you insert the document into the database, is open it up in code and read all of the information contained in it and then display that information back to the user.

I would suggest looking ont he MSDN and google.

Hth.



"The one language all programmers understand is profanity."
 
Old August 22nd, 2006, 11:41 PM
Authorized User
 
Join Date: Mar 2006
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

okay, what if make the document title a link that will download the document if the user clicks on it?

i think it is possible, but i don't know how to write the code for that... can you help me?

Happy Programming :)





Similar Threads
Thread Thread Starter Forum Replies Last Post
printing a word doc from badgolfer ASP.NET 1.0 and 1.1 Basics 2 December 13th, 2013 07:06 AM
Open a MS Word doc saved in a database cmw2992 Classic ASP Databases 0 November 26th, 2007 01:22 PM
Creating word doc - word behaviour mat41 Classic ASP Professional 2 April 29th, 2007 06:46 PM
Copy text from 1 doc to other doc thru vba in word itchock Word VBA 2 December 29th, 2006 02:47 AM
Copy word to word doc. in VB vamshi Pro VB 6 1 March 24th, 2004 06:25 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.