Link to home
Start Free TrialLog in
Avatar of cimaweb1
cimaweb1

asked on

Links to .xls files open showing code and not as excel documents

Hi

I have a website set up running on Tomcat, pages are delivered via IIS

When a user clicks on a link to an excel doc it opens as a lot of code and does not start excel on their pcs.

I have looked for a found numerous web.xml files and have added the mime types where relevant.

However this still has not solved the problem, .doc files work fine by the way

any ides of what else could be preventing the files from opening correctly

Avatar of enetadmin
enetadmin

Hi,
Is this a problem only with your particular website? Does the browser open Excel documents from other websites? It looks like the mime types in the browser needs to be fixed. BTW, is this a problem with everyone or just one PC? Also, can you speficy what browser is it? IE or Firefox or something else?

Regards
-eNetadmin
Hi,
Perhaps you can look at this MSKB and get more info about opening Excel files in the native application instead of the browser:

http://support.microsoft.com/?kbid=162059

Regards
-eNetadmin
How about adding something like this to the ASP page?

<%
   'Change HTML header to specify Excel's MIME content type
   Response.Buffer = TRUE
   Response.ContentType = "application/vnd.ms-excel"
%>
ASKER CERTIFIED SOLUTION
Avatar of JeremyT923
JeremyT923
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial