1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

embed image into excel sheet

Discussion in 'JSP' started by infyravi, May 14, 2011.

  1. infyravi

    infyravi New Member

    Joined:
    May 14, 2011
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hi,
    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.

    Thanks
    Ravi
     

Share This Page