Outline ·
[ Standard ] ·
Linear+
display msword in asp.net
TSyingchai
|
Mar 6 2006, 10:22 AM, updated 19y ago
|
|
I want to display MS Word documents using asp.net. I have a database called t_file that holds file_id, file_name, file_size, file_type, file_data and topic_id. I already uploaded a word document to the database: CODE file_id(1), file_name(test.doc), file_size(25601), file_type(application/msword), file_data(<binary>), topic_id(13)
When the user clicks on certain topics, the corresponding MS Word file should be display on the webpage itself. (not the IE will pop up the download box and ask you to save the msword to a directory). Please help... This post has been edited by yingchai: Mar 6 2006, 10:35 AM
|
|
|
|
SincerePrayer
|
Mar 6 2006, 10:35 AM
|
love to pray
|
yingchai, This is depend on the browser setting. For the client side, client need to set to open the specified file extension without asking to download. There is nothing much you can do on the ASP site. Happy Coding
|
|
|
|
TSyingchai
|
Mar 6 2006, 11:19 PM
|
|
SincerePrayer: i think my situation is about the same as this thread: http://forum.lowyat.net/index.php?showtopic=258266(the code seems workable) i also found some info here: http://aspadvice.com/forums/15177/ShowPost.aspxi think i need to install the 'Microsoft Office Primary Interop Assemblies' to load and manipulate MS Word files. it seems dat there is something dat can be done on the ASP site.
|
|
|
|