How to get values from Open office spreadsheet?

岁酱吖の 提交于 2019-12-24 11:08:11

问题


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

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