一. 主流程概述

实现过程梳理:
- 1 数据输入;
- 2 定义excle报表模板;
- 3 使用excle报表模块生成报表文件;
二. 主流程描述
1. 数据输入(文本文件输入)
输入文件people_age.txt内容如下:
id|name|age
1|lili|16
2|xiaoming|15
3|xiaozhao|14
4|feifei|17
5|huahua|14



2. 定义excle报表模板
模板文件people_age_template.xls内容如图所示:

3. 使用excle报表模块生成报表文件


运行转换后,生成的报表文件,如下图所示:

至此,整理完毕!
后记,我尝试通过kettle向excel中传递变量,可是没有成功。
网友评论