Java Library to read Microsoft Excel files [duplicate]

一笑奈何 提交于 2020-01-03 07:24:14

问题


I want to write a program that compares two Microsoft Excel sheets using Java.

Is there any existing library (and its documentation) that can help me get started with basic stuffs like reading all the rows and columns of the excel ?


回答1:


Have a look at Apache POI, which is a Java API for Microsoft Documents.

And here is a tutorial on how to setup and get started with Excel files.




回答2:


1. Apache POI

Apache POI, a project run by the Apache Software Foundation, and previously a sub-project of the Jakarta Project, provides pure Java libraries for reading and writing files in Microsoft Office formats, such as Word, PowerPoint and Excel.

http://poi.apache.org/

2. docx4j

docx4j is a Java library for creating and manipulating Microsoft Open XML (Word docx, Powerpoint pptx, and Excel xlsx) files.

http://www.docx4java.org/trac/docx4j



来源:https://stackoverflow.com/questions/21351284/java-library-to-read-microsoft-excel-files

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!