|
|
|
@@ -340,7 +340,8 @@ public class AsyncTask { |
|
|
|
|
|
|
|
private static void exportExcel(HttpServletRequest request, HttpServletResponse response, Workbook wb, String fileName) throws Exception { |
|
|
|
response.setContentType("application/octet-stream;charset=UTF-8"); |
|
|
|
response.setHeader("Content-Type", "application/vnd.ms-excel"); |
|
|
|
//response.setHeader("Content-Type", "application/vnd.ms-excel");//xls |
|
|
|
response.setHeader("Content-Type", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");//xlsx |
|
|
|
response.setHeader("Content-Disposition", "attachment;filename=" + new String(fileName.getBytes("GB2312"), "8859_1")); |
|
|
|
response.addHeader("Pargam", "no-cache"); |
|
|
|
response.addHeader("Cache-Control", "no-cache"); |
|
|
|
|