问题
How to get the values from spread sheet? I would like to read from using java language?
回答1:
OpenOffice documents are Zipped XML files. Copy one, rename it to .zip, open it and look into the XML & you'll see the data in the cells.
To access one using Java code:
- Use ZipInputStream to get access to the XML.
- Then use any of the slew of XML APIs in J2SE (DOM, Sax etc.) to parse it.
回答2:
Use OpenOffice.org UNO API.
来源:https://stackoverflow.com/questions/5556485/how-to-get-values-from-open-office-spreadsheet