Skip to content

Commit

Permalink
Create a 2nd Sheet to show that ignoring auto-size issues does work a…
Browse files Browse the repository at this point in the history
…s expected
  • Loading branch information
centic9 committed Aug 28, 2024
1 parent b7f5a2f commit 5411c68
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ public static void saveExcelFile(OutputStream outputStream) {

sheet.setPrintGridlines(true);

sheet = wb1.createSheet("Sheet2");
row1 = sheet.createRow(0);
cell = row1.createCell(0);
cell.setCellValue("cell-1");

wb1.write(outputStream);
} catch (Exception e) {
throw new IllegalStateException(e);
Expand Down

0 comments on commit 5411c68

Please sign in to comment.