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

J

Jerry O

Hi ,

I have my asp successfully creating excel file viewable through IE
using the header:

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

If the user does not have excel installed they get a IE pop up that
downloads the asp page in question.

My question is there anyway to interrupt this and tell them that they
don't have EXCEL installed, rather than showing this download pop up.

Thanks,
Jerry
 
M

Manohar Kamath [MVP]

Simple answer - no. you could detect it by running some sort of an ActiveX
object, but then that's complicated. The fact they are being promptd to
download the file should be some indication.
 

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,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top