Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ public static void main(String[] args) throws IOException {

// Create
XSSFTable table = sheet.createTable(reference);
table.setName("Test");
table.setDisplayName("Test_Table");
table.setName("Test"); //no spaces
table.setDisplayName("Test_Table"); //must be different than setName

// For now, create the initial style in a low-level way
table.getCTTable().addNewTableStyleInfo();
table.getCTTable().getTableStyleInfo().setName("TableStyleMedium2");
table.getCTTable().getTableStyleInfo().setName("TableStyleMedium2"); //no spaces

// Style the table
XSSFTableStyleInfo style = (XSSFTableStyleInfo) table.getStyle();
Expand All @@ -58,8 +58,6 @@ public static void main(String[] args) throws IOException {
style.setShowRowStripes(true);
style.setFirstColumn(false);
style.setLastColumn(false);
style.setShowRowStripes(true);
style.setShowColumnStripes(true);

// Set the values for the table
XSSFRow row;
Expand Down