Solved

response.setContentType("application/vnd.ms-excel"); give warning in 2007

Posted on 2010-08-14
7
1,756 Views
Last Modified: 2013-11-23
Hi ,

I am developing some content and that will 1st diapsly in HTML after that it will convert to XLS
so i am using response.setContentType("application/vnd.ms-excel");

its working fine upto 2003 ms excel but 2007 its give waraning msg and open

can you tell me why it happen and how to slove this ??

(
0
Comment
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 33436737
I'm wondering why you're setting that content type if it's first html?
0
 
LVL 20

Author Comment

by:Sathish David Kumar N
ID: 33436799
sorry typo error
Its JSp
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 33437030
OK. What warning message are you getting?
0
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

 
LVL 20

Author Comment

by:Sathish David Kumar N
ID: 33437143
The file format is not supported do u want to continoue ?
yes no .
if i press yess then it will open normaly
0
 
LVL 23

Assisted Solution

by:Ajay-Singh
Ajay-Singh earned 50 total points
ID: 33437160
0
 
LVL 92

Assisted Solution

by:objects
objects earned 50 total points
ID: 33438720
thats an application issue, changing the content type is not going to make any difference

0
 
LVL 27

Accepted Solution

by:
mrcoffee365 earned 400 total points
ID: 33439560
The most effective workaround is to create a .xls file and point the user to that file.

The warning was added to Excel in 2007:
http://support.microsoft.com/kb/948615

Long discussion from a Web developer's standpoint here:
http://blogs.msdn.com/b/vsofficedeveloper/archive/2008/03/11/excel-2007-extension-warning.aspx

0

Featured Post

Want Experts Exchange at your fingertips?

With Experts Exchange’s latest app release, you can now experience our most recent features, updates, and the same community interface while on-the-go. Download our latest app release at the Android or Apple stores today!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses

628 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