ExcelUtils工具推荐
来源:互联网 发布:映客 逆向源码 编辑:程序博客网 时间:2024/04/27 22:08
ExcelUtils代表着一类的报表生成工具,他使用报表本身作为模板。对于它,只能处理Excel文件,它以Excel文件为模板,在其上加以自己的定义语言,简单通俗!
官方主页:http://excelutils.sourceforge.net/Overview.html
will show all property of the model.${width?} means merge ${width?} cells. If only one
width, all property use the same width. If more than one, use the witdh in order, not set will use "1".${keys} can be Map,Array,List which contain field's name you want to display, it's not required.
示例:
模板:
转化代码:
public class Main {
/**
* @param args
*/
public static void main(String[] args) {
String[][] datas = { { "001", "张三" }, { "002", "李四" }, { "003", "王五" } };
ExcelUtils.addValue("datas", datas);
String config = "template/t1.xls";
try {
FileOutputStream fo = new FileOutputStream("result.xls");
ExcelUtils.export(config, fo);
} catch (ExcelException e) {
e.printStackTrace();
} catch (FileNotFoundException e) {
e.printStackTrace();
}
}
}
结果输出的excel:
- ExcelUtils工具推荐
- ExcelUtils 工具类
- 读取Excel工具类ExcelUtils
- 一个ExcelUtils
- 推荐工具
- 工具推荐
- ExcelUtils简单上手
- ExcelUtils简单上手
- ExcelUtils第二种写法
- 使用excelutils导出excel
- ExcelUtils--excel报表模板引擎
- 项目使用excelUtils导出表格
- java poi 导出excel ExcelUtils
- 【工具推荐】优秀截图工具
- 2004黑客推荐工具
- 工具推荐: VoluMouse
- 推荐一个工具--hexrays
- 推荐CSS工具资源
- VS2003在安装MSSCCI 后无法访问原先的VSS
- Head First C# 中文版 图文皆译 第五章 封装 page186
- 课程设计-电梯模拟
- C# winform中导出到excel
- C语言的优先性和结合方向
- ExcelUtils工具推荐
- 金融危机
- 评 杀毒软件
- 几个有用的计时的类
- Google 节日徽标全集 (1999-2009) (上)
- 人,是人,真的是人
- ITU601 Matrix to convert between YCbCr and RGB
- 一定要好好学习OO
- Jquery插件实现拖拽效果在IE下很卡的问题