https://bz.apache.org/bugzilla/show_bug.cgi?id=69501
Bug ID: 69501 Summary: Set border to XSLFTableCell not working Product: POI Version: 5.3.0-FINAL Hardware: PC OS: Mac OS X 10.1 Status: NEW Severity: major Priority: P2 Component: XSLF Assignee: dev@poi.apache.org Reporter: thomasdubui...@gmail.com Target Milestone: --- Created attachment 39956 --> https://bz.apache.org/bugzilla/attachment.cgi?id=39956&action=edit my pptx for border left and right I have this simple code : ************** public static void main(String[] args) throws IOException { try (XMLSlideShow ppt = new XMLSlideShow()) { // XSLFSlide#createSlide() with no arguments creates a blank slide XSLFSlide slide = ppt.createSlide(); XSLFTable tbl = slide.createTable(); tbl.setAnchor(new Rectangle(50, 50, 450, 300)); int numColumns = 3; int numRows = 5; // rows for (int rownum = 0; rownum < numRows; rownum++) { XSLFTableRow tr = tbl.addRow(); tr.setHeight(50); // header for (int i = 0; i < numColumns; i++) { XSLFTableCell cell = tr.addCell(); XSLFTextParagraph p = cell.addNewTextParagraph(); XSLFTextRun r = p.addNewTextRun(); cell.setBorderWidth(BorderEdge.right, 1.0); cell.setBorderColor(BorderEdge.right, Color.MAGENTA); r.setText("Cell " + (i + 1)); if (rownum % 2 == 0) cell.setFillColor(new Color(208, 216, 232)); else cell.setFillColor(new Color(233, 247, 244)); } } try (FileOutputStream out = new FileOutputStream("../Output/table.pptx")) { ppt.write(out); } } } ************** Is work fine BUT when I change BorderEdge.right to BorderEdge.left only the firt left border is created I add my pptx in attachment -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org For additional commands, e-mail: dev-h...@poi.apache.org