You might want to take a look at Apache POI, the Java API for Microsoft documents.
The goal of the Apache POI Project is to create and support the Java API for managing various file formats based on the Office Open XML (OOXML) and Microsoft OLE 2 Compound Document (OLE2) standards. In short, you can read and write MS Excel files using Java. In addition, you can read and write MS Word and MS PowerPoint files using Java.
http://poi.apache.org/
source share