Link to home
Start Free TrialLog in
Avatar of Sathish David  Kumar N
Sathish David Kumar NFlag for India

asked on

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 ??

(
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

I'm wondering why you're setting that content type if it's first html?
Avatar of Sathish David  Kumar N

ASKER

sorry typo error
Its JSp
OK. What warning message are you getting?
The file format is not supported do u want to continoue ?
yes no .
if i press yess then it will open normaly
SOLUTION
Avatar of Ajay-Singh
Ajay-Singh

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
SOLUTION
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
ASKER CERTIFIED SOLUTION
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