Last active
July 11, 2019 14:22
-
-
Save firegloves/cad022a122d86701c6219c5eee59ea51 to your computer and use it in GitHub Desktop.
MemPOI - The most basic example returning byte[]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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