Display excel problem in java
Hi all
I am getting a problem in my application. From my application when i try to open a excel sheet it workds fine. But when I try to rename the sheet name is gives first 4 characters like this .xls]filename. what i want is only filename.This is my code which i am using to preparing a excel file
response.setHeader("Cache-Control", "no-cache"); response.setHeader("Pragma", "no-cache");
response.setDateHeader("Expires", -1);
response.setContentType("application/ms-excel;");
response.setHeader("Content-Disposition", "attachment; filename=test.xls");
Even when i click on save as button In file type it gives .htm and *.html , what i want is .xls
waiting for you all's response

