|
楼主 |
发表于 2020-4-4 21:15:01
|
显示全部楼层
excel文件”扩展名是.xls ,用的是struts框架,
public String createExcel(String str,String flag) throws BaseException {
BaseSQLHandler baseSQLHandler = new BaseSQLHandler(false);
BaseDBConnection connection = baseSQLHandler.getBaseDBConnection();
// create a new workbook
HSSFWorkbook workBook = new HSSFWorkbook();
HSSFDataFormat format = workBook.createDataFormat(); |
|