admin管理员组

文章数量:1535107

response.addHeader("Content-Disposition", "attachment;filename=" + new String((orderId + "_线下订单.xls").getBytes("UTF-8"), "ISO8859-1"));
OutputStream os = new BufferedOutputStream(response.getOutputStream());
response.setContentType("application/octet-stream");
wb.write(os);//worksheet写入OutputStream
os.write(wb.getBytes());// 输出文件  wb是worksheet对象
os.flush();
os.close();


隐藏一列:

sheet.setColumnHidden(6, true);//隐藏编号那列

本文标签: 浏览器如何在poiExcel不弹窗