java导出报表

private void CSVDownloadBusines(HttpServletResponse response, String DATE,
List lst, HttpServletRequest request) throws BaseException {

String filename = "业务报表@";
filename = filename + DATE;

DownLoadData d = new ReportDailyBusinesDownLoadImp();
try {
d.initContentType(filename, "业务报表@", response, request);
d.writeExcel(lst);
d.closeOutputStream();
} catch (Exception e) {
throw new BaseException(e);
}
}

猜你喜欢

转载自h13327840728.iteye.com/blog/1848555