Go4Expert (http://www.go4expert.com/)
-   JSP (http://www.go4expert.com/forums/jsp/)
-   -   embed image into excel sheet (http://www.go4expert.com/forums/embed-image-excel-sheet-t25784/)

infyravi 14May2011 14:14

embed image into excel sheet
We are having the requirement to embed images into excel using JSP.
Means the page should get exported as Excel with image embed in it.
I tried this simple example

<% response.setHeader("Content-Disposition", "attachment;filename=\"mult-table.xls\""); %>
<%@ page contentType="application/vnd.ms-excel" %>
<table><tr><td><img src="/excel/images.jpg" ></td></tr></table>

But the issue is that image is not getting embedded..I am able to see only the hyperlink to image.

Please let me know how can i achieve this.
We cannot use POI here as some client restrictions are there.


All times are GMT +5.5. The time now is 01:41.