Skip to content

Instantly share code, notes, and snippets.

@firegloves
Last active July 11, 2019 14:22
Show Gist options
  • Save firegloves/cad022a122d86701c6219c5eee59ea51 to your computer and use it in GitHub Desktop.
Save firegloves/cad022a122d86701c6219c5eee59ea51 to your computer and use it in GitHub Desktop.
MemPOI - The most basic example returning byte[]
try {
// creates MemPOI using its builder
MemPOI memPOI = MempoiBuilder.aMemPOI()
.addMempoiSheet(new MempoiSheet(prepStmt))
.build();
// exports to byte array
CompletableFuture<byte[]> fut = memPOI.prepareMempoiReportToByteArray();
// gets the generated report byte array
byte[] bytes = fut.get();
} catch (Exception e) {
e.printStackTrace();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment