Word/Excel needed??

H

Harry Simpson

If i'm using :

Response.ContentType = "application/vnd.ms-excel"

or

Response.ContentType = "Application/msword"
Response.WriteFile(FilePath)

Does the user have to have Word and Excel installed on the client box to
view the files in IE6??
And if so, and they don't have a full version of Word, will this ContentType
fire up the free Word viewer automatically for viewing??

TIA much!

Harry
 
F

Frank Drebin

You could specify it as a RTF (rich text) with "application/rtf"

You may want to do a little client-side sniffer.. in a try/catch javascript
function, try to instantiate MS Word or excel (you could look up in the
registry what the progid's are..).. if you can't instantiate a programatic
version - then you know it's not installed and handle it accordingly..
 
K

Ken Cox [Microsoft MVP]

It think the Word viewer should take over if Word is not on the machine. You
may run into some security settings on some browsers, depending on the zone.

--
Microsoft MVPs have a question for *you*: Are you patched against the Worm?
http://www.microsoft.com/security/security_bulletins/ms03-026.asp



If i'm using :

Response.ContentType = "application/vnd.ms-excel"

or

Response.ContentType = "Application/msword"
Response.WriteFile(FilePath)

Does the user have to have Word and Excel installed on the client box to
view the files in IE6??
And if so, and they don't have a full version of Word, will this ContentType
fire up the free Word viewer automatically for viewing??

TIA much!

Harry
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top