Word/Excel needed??

  • Thread starter Thread starter Harry Simpson
  • Start date Start date
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
 
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..
 
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
 
Back
Top