Figure out which cells are merged in a streaming fashion

Tomasz Melcer <[email protected]>
Newsgroups gmane.comp.jakarta.poi.user
Message-ID <pony-0bf13813f7eebf637352e1cdca37d1df685af31b-262234916c075b57f07700af3454fb0f914e4d5c@user.poi.apache.org>
Hi,

I am trying to parse large (many sheets with hundreds of thousands of rows and tens of columns) spreadsheet files, xlsx and xlsb, in a streaming fashion. The spreadsheet is a standard table with a two-row header, where the upper row are merged cells representing groups of columns, and the lower row contains names of columns within a group. I need to identify the columns I need to parse before reading the data, and for that I need to know which group a given column belongs to.

However, I cannot find information on how to recognize merged cells in a streaming fashion. Is it even possible? As far as I know, in case of xlsx files, information on which cells are in a merged region is stored in the <mergeCells> element of the sheet xml, and in my example files this element is at the end of the file.

Thank you,
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.