Solved

application/vnd.ms-excel with classic asp do not work in mac anymore

Posted on 2014-11-11
5
617 Views
Last Modified: 2014-11-12
Hi!
I have an application in Classic asp that uses application/vnd.ms-excel to export to excel from a database, my customer have been using this application for years and it have Always worked fine.

But when he was updating his mac the other day it stopped working and tried to open a Word document insted for an excel file.

Is this a case of wrong mime types and if this is the case, what to do?
0
Comment
Question by:MickeC
  • 2
  • 2
5 Comments
 
LVL 52

Expert Comment

by:Scott Fell, EE MVE
Comment Utility
I have resorted to just exporting out a csv file because it is much easier.

Can you create a test link with some fake data to look at.  I am on osx 10.10 and have office 2008 if that helps.  Let's see if it works for others.
0
 

Author Comment

by:MickeC
Comment Utility
0
 
LVL 52

Accepted Solution

by:
Scott Fell,  EE MVE earned 500 total points
Comment Utility
On my mac osx 10.10, I tried chrome, firefox and safari and all work as expected.  I think the problem is the file is downloading as .asp file and the mac associated word with .asp.  What I do is change the file name like below.  This way it should download as a .xls file and work as expected.

Response.AddHeader "Content-Disposition", "attachment; filename=excel_ej.xls"

Open in new window

0
 
LVL 32

Expert Comment

by:Big Monty
Comment Utility
did you try it on other macs that you have? I don't have one but as Scott said, it worked fine for him. If it's only one machine, then it has to do with the client end and you don't need to change your code (although I would follow scotts advice on changing the extension to xls or csv).

did he check his mappings on his machine? My guess is those got changed somehow through the update, he probably had asp files mapped to open in excel.
0
 

Author Comment

by:MickeC
Comment Utility
Hi! It is a customer to me who has the problem, they only have mac computers in their office, but it is only on his computer it won't work and he has recently updated his computer.

I have only PC and it works fine for me, i will test to change the extension and let my customer test the link as soon he is back at the office.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

      Install BugTracker on Windows 2008 server Step 1:  Install windows 2008 server 32 bit OS and configure IIS. Step 2:  Install SQL server ( SQL server 2005 or SQL server 2005 Express edition. The installer for 2008  version isn’t very f…
Introduction HyperText Transfer Protocol (http://www.ietf.org/rfc/rfc2616.txt) or "HTTP" is the underpinning of internet communication.  As a teacher of web development I have heard many questions, mostly from my younger students who have come to t…
This video teaches users how to migrate an existing Wordpress website to a new domain.
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now