Skip to content

liusishan/poi

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java POI 导入 导出 EXCEL

License PRs Welcome GitHub stars GitHub forks

Runtime Environment

Java Web

  • 将源代码导入Eclipse或IDEA中
  • 部署项目,启动Tomcat服务器
  • Web页面具体路径:http://localhost:8080/poi
  • 点击Read excel 2003 or 2007,可以读取2003或2007版Excel
  • 点击Export excel 2003,可以导出Excel 2003版
  • 点击Export excel 2007,可以导出Excel 2007版
  • 点击Export excel by templates,replace a cell,读取模版replaceTemplate.xls,替换单元格内容后导出Excel
  • 点击Export excel by templates,insert a table,读取模版template.xls,插入表格后导出Excel

Java Application

以下java类可直接运行使用

  • Read excel 2003 or 2007,对应ReadExcel.java
  • Export excel 2003,对应TestExportExcel.java
  • Export excel 2007,对应TestExportExcel2007.java
  • Export excel by templates,replace a cell,对应TestExcelReplace.java
  • Export excel by templates,insert a table,对应TestTemplate.java

Remarks

  • 例子代码比较简单,仅供参考……
  • 兼容Java 7, Java 8

Links

License

This project is Open Source software released under the Apache 2.0 license.

Packages

No packages published

Languages

  • Java 100.0%