关于网友提出的“ 使用jsp导出到excel,图片不能写入excel表格”问题疑问,本网通过在网上对“ 使用jsp导出到excel,图片不能写入excel表格”有关的相关答案进行了整理,供用户进行参考,详细问题解答如下:
问题: 使用jsp导出到excel,图片不能写入excel表格
描述:jspjava图片excel
<%@page import="java.util.List"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@ page language="java" c/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
response.reset();
String filename = "我司提供物料表.xls";
response.setContentType("application/vnd.ms-excel;charset=UTF-8");
response.setHeader("Content-Disposition", "attachment;filename=" + new String(filename.getBytes("GBK"), "iso8859-1"));
%>
![]()
${vo.wbxmmc}(我司提供)
导出用户:${userName} 导出时间:${excelTime}
|
序号
| 研发编码
| 新物料编码
| 数量
| 物料名称
| 备注
${status.index+1}
| ${list.yfbm}
| ${list.xwlbm}
| ${list.sl}
| ${list.wlmc}
| ${list.bz}
| | |
但是导出Excel后,图片无法显示
以上介绍了“ 使用jsp导出到excel,图片不能写入excel表格”的问题解答,希望对有需要的网友有所帮助。
本文网址链接:http://www.codes51.com/itwd/1785439.html
相关图片
相关文章