Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Run MS Word/Excel from ASP Form Link

Status
Not open for further replies.

jsteff

Technical User
May 22, 2003
109
0
0
US
In my ASP form (running from a MS workstation) is a drop-down of MS Word documents (on the server) related to the ASP record in the form. When you click the link, I want the doc to show up at your workstation. Two questions:

1. I have found a third-party tool "ASPExec" that makes this easier. Is there a better standard way to do this in straight ASP?

2. Would it be possible for the workstation user to modify the MS Word doc and save it back to the server? OR Would it be strictly a "read-only" process?

I would appreciate any insights!
Thanks



 
You can look into changing the ContentType of the links that contain the Word and Excel files.

Excel ContentType:
Code:
Response.ContentType = "application/vnd.ms-excel";
Word ContentType:
Code:
Response.ContentType = "application/vnd.ms-word"

Changing the ContentType will make the ASP file open up the respective program to view the content.

Here's a link that can explain it better than I can.


[small]"There's an old saying in Tennessee — I know it's in Texas, probably in Tennessee — that says, fool me once, shame on — shame on you. Fool me — you can't get fooled again." - George W. Bush[/small]
<.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top