Apache POI Excel - how to configure columns to be expanded?
I am using Apache POI API to generate excel spreadsheet to output some data. The problem I am facing is when the spreadsheet is created and opened, columns are not expanded so that some long text like Date formatted text is not showing up on first glance. I could just double click the column border in excel to expand or drag the border to adjust the column width but there could be 20+ columns and there is no way I want to do that manually every time I open the spreadsheet :( I found out (though could be wrong method) groupRow() and setColumnGroupCollapsed() might be able to do the trick but no