reading XLSB from apache poi - excel

I've read it stated on multiple SO questions that Apache POI 3.16-beta3 has read-only support for xlsb files.
I am using poi 3.17 and cannot find any documentation or examples of this feature. The best I can find is an example of extracting raw text only via XSSFBEventBasedExcelExtractor, but this appears to be quite old (2010?) and I am unsure if this is the referenced capability.
Is there any documentation or examples of using poi to read xlsb files with the read-only parsing alluded to in the comments of this question: Exception reading XLSB File Apache POI java.io.CharConversionException and in an answer to this: Reading data from .xlsb in Clojure by Tim Allison ?

The functionality that Tim was referring to is actually XSSFBEventBasedExcelExtractor, and it was added in Apache POI 3.16. It can be used to extract text-content from the file.
There is currently no functionality to fully read the file content, though.
See also the JavaDoc for this class.

Related

Apache POI HSSF/XSSF support for newer Versions of Excel

Currently im working on a project which includes the Apache POI to read and write Excel files.
Im looking for a source that basically says that the POI (HSSF/XSSF) works for newer versions of Excel as well, since it says on the official website that HSSF supports Excel 97-2007. Yet i got Excel 2016 and when i'm trying to read data out of the file it's working just fine. Im Struggling to find something because i don't know where to look, and my first language isn't english so skimming through the changelogs is really hard for me.
Please let me know if this was a stupid question.
Thanks in advance.

How to get DataValidation in Apache POI 3.9?

I am using Apache POI to write and read excel files,my poi version is 3.9,but now I faced a problem and do not find a good solution to solve it.
First I am use poi to write some datas to the excel table and will use DataValidation to add some prompt information in the table header,as the picture shown below:
The value in the cell is ABSInterention,and the prompt title is wrxuoh.After the excel generated successfully,other users will add some modification to the data cell and I need to read and parse the excel file and I want to get the prompt value wrxuoh again.So my question is:
When I read excel file using POI3.9,how can I get all the DataValidations for the current sheet?
I am using HSSFWorkbook and HSSFSheet.I found there is a method called getDataValidations in the POI Sheet,but I can not find this method in my poi3.9 jar file and also can not find it in the POI3.9 javadoc.
any help would be grateful!
Promoting a comment to an answer - you can't
That functionality was added to Apache POI after the 3.9 release you mention in your question
As per the Apache POI Changelog, you need to upgrade to at least POI 3.11 beta 3 to use that feature. 3.11 final, when it comes out shortly, will be the first stable release to include it

Does Apache POI support the "strict" variant of ISO/IEC 29500?

With M$ Excel 2013 there are 2 variants of XLSX, the "Transitional" which M$ supported with XLSX in Excel 2010, and "Strict" = OOXML. Is POI able to read and write the latter? If so, from which version of POI?
Yes, and POI 3.5 (though you'd be strongly advised to use 3.9, or wait about a week for a 3.10 beta)
POI uses the official ISO XML schema files to process the XML files, so by default works with the strict (official) form. There's not that much different between the two, but where there is such a difference that matters, POI will have code to munge the low level XML skipping what the schema would normally say.
No, Apache POI does not support Open XML Strict as of this date.
See source: https://helpwanted.apache.org/task.html?5a5d86c834df99c79279b34d6ecdc413107874be

Embed document in xlsx file with POI

Is there any way to embed a document (e.g. pdf) in an xlsx file using Apache POI? It seems you can read embedded documents using workbook.getAllEmbedds(), but I can't find a way to insert any when writing a file.
This should help: similar question with answer User has created a patch for Apache poi with which you can include arbitary file into excel sheet patch link here
Hope this helps.

How to access a excel file in CF8?

How to read an excel file from cfm page?
That depends on what you want to do. If you simply need to upload the file, you can use the cffile tag (CF8 documentation here).
If you want to extract data from it, you may want to look at Ben Nadel's POI Utility CFC. (Note that it's not been updated since the release of CF9 because of the introduction of the cfspreadsheet tag in that version of ColdFusion.)

Resources