determine version of microsoft office with java

后端 未结 4 2120
灰色年华
灰色年华 2021-01-06 03:42

I wrote a program that creates a set of data that is outputted to an excel spreadsheet. I was originally using the jexcel library to write the data to the file, but I\'d lik

4条回答
  •  一生所求
    2021-01-06 04:34

    Take a look at OfficeVer.

    You can implement it to your script or use it for code analysis. It's cross-platform much like Java, so compiling it and implementing it directly shouldn't be a big deal. It works by extracting .docx and xlsx files and then reading the version, as well as reading directly from .doc and .xls files. OfficeVer as well has extended their support to .pdf files (current version as of time of writing is 1.03.1)

提交回复
热议问题