摘要
在JSP项目开发过程中,会常遇到Word报表业务。采用FreeMarker模板引擎技术和Java编程的方法来解决Word报表生成问题。实践证明,此种解决方案代码量少,样式、内容容易控制,打印不变形,生成的文档和office中编辑文档完全一样,是当前Java操作Word的最佳方案。
Word report business will always occur in the development of JSP project.The paper solves the problem of Word report by using FreeMarker template engine technology and Java programming.It proves that ,the solution has the advantages of less code,and the styles and contents are easier to control, and the printing effect will not deformate,and the generated documents look exactly the same like in the word document, and it's the best way for word programming for usin~ lava lanzua^e.
出处
《电脑开发与应用》
2013年第12期59-61,共3页
Computer Development & Applications