Skip to content

Instantly share code, notes, and snippets.

@firegloves
Last active July 11, 2019 15:44
Show Gist options
  • Save firegloves/11b3ad7349f15ae05667ca77620b98cf to your computer and use it in GitHub Desktop.
Save firegloves/11b3ad7349f15ae05667ca77620b98cf to your computer and use it in GitHub Desktop.
MemPOI - Adding bundled NumberSumSubFooter to the export
try {
// creates MemPOI using its builder and requests the export
MempoiBuilder.aMemPOI()
.withWorkbook(new SXSSFWorkbook())
.addMempoiSheet(new MempoiSheet(prepStmt))
.withStyleTemplate(new ForestStyleTemplate())
.withMempoiSubFooter(new NumberSumSubFooter())
.build()
.prepareMempoiReportToByteArray()
.get();
} catch (ExecutionException e) {
System.out.println(e.getCause().getMessage());
} catch (InterruptedException e) {
e.printStackTrace();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment