Hello, I have code that groups and collapses rows as shown below: sheet.groupRow(startGroup, endGroup); sheet.setRowGroupCollapsed(startGroup, true); It works fine in XSSF, but if I change to SXSSF it produces an Excel workbook that Excel claims is corrupt. Very large workbooks is when both of these feature are most useful. Thanks!
Are you using the latest release? A similar problem was reported in Bugzilla 51673 and the fix is included in POI-3.8. Yegor
I am facing the same issue, also there is no code in the setRowGroupCollapsed method in SXSSF: method from SXSSFSheet.class: public void setRowGroupCollapsed(int row, boolean collapse) { //_sh.setRowGroupCollapsed(row, collapse); throw new RuntimeException("Not Implemented"); } How does collapsing work otherwise in SXSSF Sheets?
In the latest version of POI, collapsing row groups is supported, only expanding the groups again is currently not implemented as this is usually not needed for streaming use-case that SXSSF supports. Please report fresh bugs for anything that is not working or if you think expanding should be supported and you have an idea about how it should be done.