摘要:
http://blog.sina.com.cn/s/blog_4cef5c7b01015xjy.htmlPOI中可能会用到一些需要设置EXCEL单元格格式的操作小结:先获取工作薄对象:Java代码 HSSFWorkbook wb = new HSSFWorkbook(); HSSFSheet sheet = wb.createSheet(); HSSFCellStyle setBorder = wb.createCellStyle(); 一、设置背景色:Java代码 setBorder.setFillForegroundColor((short) 13);// 设置背景色... 阅读全文
摘要:
http://blog.csdn.net/elimago/article/details/38388371.创建工作簿 (WORKBOOK) HSSFWorkbook wb = new HSSFWorkbook(); FileOutputStream fileOut = new FileOutputStream("workbook.xls"); wb.write(fileOut); fileOut.close();2.创建工作表(SHEET) HSSFWorkbook wb = new HSSFWorkbook(); HSSFSheet sheet1 = w... 阅读全文
摘要:
http://zc985552943.iteye.com/blog/1491546import ins.framework.dao.GenericDaoHibernate;import java.io.FileOutputStream;import java.io.IOException;import java.sql.Connection;import java.sql.ResultSet;import java.sql.SQLException;import java.sql.Statement;import java.util.ArrayList;import java.util.Dat 阅读全文