如题,求高手帮忙看看,我现在做到能在Excel中导出指定的内容,代码如下:
HSSFWorkbook wb = new HSSFWorkbook();
HSSFSheet sheet = wb.createSheet("test"); FileOutputStream fileOut; HSSFRow row = sheet.createRow((short) 0); row.createCell((short) 1).setCellValue("aa");
row.createCell((short) 3).setCellValue("bb");
row.createCell((short) 5).setCellValue("CC");
try {
// 制定导出的路径
fileOut = new FileOutputStream("E:/book.xls");
wb.write(fileOut);
fileOut.close();
} catch (FileNotFoundException e) {
System.out.println("文件没有找到!");
e.printStackTrace();
} catch (IOException e) {
System.out.println("IO异常!");
e.printStackTrace();
}请问,POI插件支不支持模板导出,如果支持该怎么实现,谢谢!