public static void creatExcel() throws IOException {
//生成文档对象
HSSFWorkbook hssfWorkbook = new HSSFWorkbook();
//指定文档写出
File file = new File("E://java//sany//poi//poiExcel.xls");
//写出对象到指定的路径
hssfWorkbook.write(file);
}
2023-10-21 11:05:40
public static void creatExcel() throws IOException {
//生成文档对象
HSSFWorkbook hssfWorkbook = new HSSFWorkbook();
//指定文档写出
File file = new File("E://java//sany//poi//poiExcel.xls");
//写出对象到指定的路径
hssfWorkbook.write(file);
}
下一篇:Axure的页面交互