利用XLSTransformer生成多sheet的excel

XLSTransformer transformer = new XLSTransformer();
        File template = ResourceUtils.getFile("classpath:template/excel/claim_summary_report.xls");
        InputStream is = new FileInputStream(template);
        Workbook workbook = transformer.transformMultipleSheetsList(is,results,monthNames, "results",new HashMap(),1);


is为模板输入流
result为sheet要用到的对象列表
monthNames为sheet名字
results为sheet循环用到的索引名
1代表从第几个sheet开始

你可能感兴趣的:(transform)