Can Any body tell me how to open excel sheet seperately using JSP.
Here in our application.I am generating a table in Jsp page when i click on a button i am getting a message box with button "open" and "save". When i click on 'save' it is saving the table to selected path in excel format. Now when i click on "open". it is not able to open this table in excel sheet.
When i open excel application and click on "open" button this time it is opening my table in excel sheet.
What i need is when i click on "open" button without opening MS Excel application it should open my table in a specified location with specified name. Pls tell me the code for this.
I have used the following code in my application.pls tell me the modifications or additions for this to get my requirement
When i click on "open" button on dialog message displayed, I want to open excel sheet automatically with data of my what JSP page contains. Now my appication is unable to do it.
When i manually opend Excel application and clicking on "open" button of dialog it is opening my JSp page in excel sheet,Otherwise it is opening excel sheet but promting an error such as 'Unable to open file'.
please Let me know the solution for this
Thanks in advance.
-Malli
Rusty Smythe
Ranch Hand
Joined: Aug 09, 2006
Posts: 93
posted
0
Sounds like one of two things
You're not setting the response header correctly,
Your machine is not set up properly for opening excel files
For the mime type, it should be application/vnd.ms-excel
I wonder if the charset parameter is messing it up.