-
讀寫各種文件查看全部
-
ctrl+shift+O 引入查看全部
-
設置單元格類型為數據類型查看全部
-
添加字體樣式查看全部
-
設值單元格格式查看全部
-
合并單元格查看全部
-
設值列寬查看全部
-
獲取sheet頁的兩種方式查看全部
-
HSSFWorkbook book = new HSSFWorkbook(); HSSFSheet sheet = book.createSheet(); String[] columns = {"id","名字","性別"}; HSSFRow headeRow = sheet.createRow(0); for (int i = 0; i < columns.length; i++) { HSSFCell cell = headeRow.createCell(i); cell.setCellValue(columns[i]); } for (int i = 1; i < 11; i++) { HSSFRow nextRow = sheet.createRow(i); HSSFCell cell2 = nextRow.createCell(0); cell2.setCellValue(i); cell2 = nextRow.createCell(1); cell2.setCellValue("name" + i); cell2 = nextRow.createCell(2); cell2.setCellValue("男"); } FileOutputStream outputStream; try { outputStream = new FileOutputStream(new File(fileName)); book.write(outputStream); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); }查看全部
-
下載PDF查看全部
-
PDF查看全部
-
今天看到這里查看全部
-
FastExcel查看全部
-
POI和JXL 的對比。查看全部
-
iText-可以生成PDF或rtf,還可以將XML,HTML轉化為PDF XSSF-讀寫OOXML HWPF-讀寫Word HSLF-讀寫PowerPoint查看全部
舉報
0/150
提交
取消