poi
shishize55
这个作者很懒,什么都没留下…
展开
-
POI 大标题样式
// 大标题的样式public CellStyle bigTitle(Workbook wb) { CellStyle style = wb.createCellStyle(); Font font = wb.createFont(); font.setFontName("宋体"); font.setFontHeightInPoints((short) 16); font.setBol...翻译 2018-11-09 08:45:28 · 1127 阅读 · 0 评论 -
poi 文件导出
public void download(ByteArrayOutputStream byteArrayOutputStream, HttpServletResponse response, String returnName) throws IOException{ //设置响应文件类型 MINI 可以在tomcat下的cof/web.xml 可以查到 response.setCon...翻译 2018-11-09 09:05:47 · 141 阅读 · 0 评论 -
poi 文字样式
// 文字样式public CellStyle text(Workbook wb) { CellStyle style = wb.createCellStyle(); Font font = wb.createFont(); font.setFontName("Times New Roman"); font.setFontHeightInPoints((short) 10); sty...翻译 2018-11-09 09:29:47 · 297 阅读 · 0 评论 -
poi 小标题样式
// 小标题的样式public CellStyle title(Workbook wb) { CellStyle style = wb.createCellStyle(); Font font = wb.createFont(); font.setFontName("黑体"); font.setFontHeightInPoints((short) 12); style.setFont...翻译 2018-11-09 09:31:50 · 209 阅读 · 0 评论 -
poi 按导入样式设置 并导出指定年月 表
/** * 按样式设置 并导出指定年月 表 * * @return * @throws Exception */ @Action(value = "outProductAction_print") public String print() throws Exception { String shipTime = inputDate; // 2017-08 20...翻译 2018-11-09 09:57:10 · 162 阅读 · 0 评论