java 导出xcel 增量写入同一sheet.docVIP

  • 2
  • 0
  • 约13.3万字
  • 约 11页
  • 2016-12-03 发布于河南
  • 举报
java 导出xcel 增量写入同一sheet

代码: response.setCharacterEncoding(utf8); int totalcount=agentService.queryCount(map);//查询记录总数 try { OutputStream outputStream = response.getOutputStream(); String title=影楼充值数据.xls;//excel文件名 byte[] content=findExcelData(totalcount,map,影楼充值数据);//转字节流 totalcount 总数; map 参数 ; 最后一个是sheet名称 response.setContentType(application/x-msdownload); response.setContentLength(content.length); response.setHeader(Content-Disposition, attachment;filename=+ new String(title.getBytes(utf-8), ISO-8859-1)); outputStream.write(content); outputSt

文档评论(0)

1亿VIP精品文档

相关文档