需要设置成上图的样式,不知道怎么设置,弄了半条只能设置表格第一行标题,
表格第二行标题死活设置不出来,下面贴上代码,求助如何设置成图片中的样式!!!
HSSFWorkbook wb=new HSSFWorkbook();//创建工作薄
HSSFSheet sheet=wb.createSheet();//创建工作表
wb.setSheetName(0, "sheet0");//设置工作表名
HSSFRow row=null;
HSSFCell cell=null;
String excelFile ="myexcel_search_zt.xls";
FileOutputStream fos=new FileOutputStream(temp+excelFile);
row=sheet.createRow(0);//新增一行
cell = row.createCell(0);
cell.setCellValue("出版社");
cell = row.createCell(1);
cell.setCellValue("学科");
cell = row.createCell(2);
cell.setCellValue("年级");
cell = row.createCell(3);
cell.setCellValue("册别");
cell = row.createCell(4);
cell.setCellValue("教材名");
cell = row.createCell(5);
cell.setCellValue("总资源数");
cell = row.createCell(6);
cell.setCellValue("总容量");
cell = row.createCell(7);
cell.setCellValue("教学设计(08;0101)");
cell = row.createCell(8);
cell.setCellValue("课件(08;0601+0602)");
cell = row.createCell(9);
cell.setCellValue("媒体素材(08;0300)");
cell = row.createCell(10);
cell.setCellValue("习题精选(08;0401)");
cell = row.createCell(11);
cell.setCellValue("导学案(08;2015)");
cell = row.createCell(12);
cell.setCellValue("班班通电子书(1402)");
cell = row.createCell(13);
cell.setCellValue("电子书容量");
cell = row.createCell(14);
cell.setCellValue("iflybook电子书(1403)");
cell = row.createCell(15);
cell.setCellValue("电子书容量");
cell = row.createCell(16);
cell.setCellValue("班班通授课文件(0606)");
cell = row.createCell(17);
cell.setCellValue("授课文件容量");
cell = row.createCell(18);
cell.setCellValue("iflybook授课文件(1405)");
cell = row.createCell(19);
cell.setCellValue("授课文件容量");