|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Converting HTML report to Excel
Hi
I have a jsp page and I want my data to appear in Excel via "send2Excel" button that I have on my web page. Can anyone pls sugget some code snippet to achieve the same. I guess I can use this but not sure how: <%@ page contentType = "application/vnd.ms-excel" %> <%response.setContentType("application/vnd.ms-excel");%> Amit |
|
#2
|
||||
|
||||
|
I'd do it just like that. Send an Excel Content-Type header and then send just the table. Excel will convert and display it as a regular spreadsheet. Note that CSS isn't shown, though...
---John Holmes... |
|
#3
|
|||
|
|||
|
Excel on button
thanks John,
I want to invoke a excel file on click of a button. This excel will have my html data. I need a code snippet to go thru, if someone can provide me with that to look thru. |
![]() |
| Viewing: Dev Shed Forums > Web Design > Web Design Help > Converting HTML report to Excel |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|