Heim  >  Artikel  >  Web-Frontend  >  jsp方式导出Excel能不能导出图片_html/css_WEB-ITnose

jsp方式导出Excel能不能导出图片_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:41:291365Durchsuche

现在采用的是在JSP中设置头文件
response.setContentType("application/vnd.ms-excel;charset=UTF-8");
 response.setHeader("Content-Disposition", "attachment;filename=" + new String(filename.getBytes("GBK"), "iso8859-1"));
然后需要在某个td里面加入


    jsp方式导出Excel能不能导出图片_html/css_WEB-ITnose
   ${vo.wbxmmc}(我司提供)

jsp方式导出Excel能不能导出图片_html/css_WEB-ITnose图片不显示,因为图片在服务器上,要怎么实现显示图片,谢谢


回复讨论(解决方案)

这个问题有点不明白,页面上的图片路径不都是服务器的吗,坐等楼下解答

是可以的,但是没看明白你上面为什么是那样写的。


参考:

用jxl可以导出图片到excel.

http://blog.csdn.net/wugouzi/article/details/12951241

是可以的,但是没看明白你上面为什么是那样写的。


参考:

用jxl可以导出图片到excel.

http://blog.csdn.net/wugouzi/article/details/12951241



我要把整个HTML都下载,直接到jsp设置下就行啦,你这个好像表格什么都还要设定


是可以的,但是没看明白你上面为什么是那样写的。


参考:

用jxl可以导出图片到excel.

http://blog.csdn.net/wugouzi/article/details/12951241



我要把整个HTML都下载,直接到jsp设置下就行啦,你这个好像表格什么都还要设定

额、、、这个是针对数据的,下载下来是跟你平时看到的excel那样,一列一列的。
Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn