Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

 display msword in asp.net

views
     
TSyingchai
post Mar 6 2006, 10:22 AM, updated 19y ago

Regular
******
Senior Member
1,281 posts

Joined: Jul 2005

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
post Mar 6 2006, 10:35 AM

love to pray
Group Icon
Elite
1,120 posts

Joined: Jun 2005
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 smile.gif
TSyingchai
post Mar 6 2006, 11:19 PM

Regular
******
Senior Member
1,281 posts

Joined: Jul 2005

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.aspx
i 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. unsure.gif unsure.gif unsure.gif



 

Change to:
| Lo-Fi Version
0.0108sec    0.49    5 queries    GZIP Disabled
Time is now: 29th March 2024 - 10:37 PM