Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1808
  • Last Modified:

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

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
Sathish David  Kumar N
Asked:
Sathish David  Kumar N
3 Solutions
 
CEHJCommented:
I'm wondering why you're setting that content type if it's first html?
0
 
Sathish David Kumar NAuthor Commented:
sorry typo error
Its JSp
0
 
CEHJCommented:
OK. What warning message are you getting?
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
Sathish David Kumar NAuthor Commented:
The file format is not supported do u want to continoue ?
yes no .
if i press yess then it will open normaly
0
 
Ajay-SinghCommented:
0
 
objectsCommented:
thats an application issue, changing the content type is not going to make any difference

0
 
mrcoffee365Commented:
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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now