Skip to content

Adjust columns width

firegloves edited this page Jul 20, 2022 · 1 revision

Adjust columns width

MemPOI can adjust columns width to fit the longest content by setting to true the property MempoiBuilder.adjustColumnWidth as follows:

MemPOI memPOI = MempoiBuilder.aMemPOI()
                    .withAdjustColumnWidth(true)
                    .addMempoiSheet(new MempoiSheet(prepStmt))
                    .build();

Adjusting columns width for huge datasets could dramatically slow down the generation process