Apache POI Excel – how to configure columns to be expanded?
After you have added all your data to the sheet, you can call autoSizeColumn(int column) on your sheet to autofit the columns to the proper size Here is a link to the API. See this post for more reference Problem in fitting the excel cell size to the size of the content when using apache … Read more