2014年8月18日

jxls使用模版导出Excel

摘要: ** * 用excel模版模版导出excel * * @param templeteSrc * 模版路径(含名称) * @param params * 模版参数 * @param newExcelPath * 生成excel路径 */ public static void createExcel(String templeteSrc, Map params, String newExcelPath,String cre_FileName) { try { XLSTransformer transformer = new XLSTransformer(); File file=new File(newExcelPath); if(!file.exists() 阅读全文

posted @ 2014-08-18 12:20 qgc 阅读(793) 评论(0) 推荐(0)

IText 生成pdf,处理table cell列跨页缺失的问题

摘要: /** * 创建(table)PDF,处理cell 跨页处理 * @param savePath(需要保存的pdf路径) * @param pmbs (数据库查询的数据) * @return   *http://www.cnblogs.com/qgc88/ */ private String createPDFTable(String savePath, LinkedList pmbs){ try{ Document document = new Document(); // String separator = System.getProperties().getProperty("file.separator"); FileOutputStream out = new FileOutputStream(savePath); PdfWriter.getInstance 阅读全文

posted @ 2014-08-18 11:59 qgc 阅读(2895) 评论(0) 推荐(0)

导航