https://bz.apache.org/bugzilla/show_bug.cgi?id=62431

--- Comment #4 from Andreas Beeker <[email protected]> ---
(In reply to sakshijuyal12690 from comment #0)
> ... and when I try to do the
> same manually by getting the specific merged Cell from the table and apply
> border manually, it does not allow me to do the same.

Works for me - tested with Libre Office. the table_test.pptx is located at [1].
You need to attach your slideshow and the manual version of your code.

try (XMLSlideShow ppt =
XSLFTestDataSamples.openSampleDocument("table_test.pptx")) {
    XSLFTable tab = (XSLFTable)ppt.getSlides().get(0).getShapes().get(0);
    tab.mergeCells(0, 1, 1, 1);
    XSLFTableCell cell = tab.getCell(0, 1);
    cell.setBorderColor(BorderEdge.bottom, Color.red);
    try (FileOutputStream fos = new FileOutputStream("merge.pptx")) {
        ppt.write(fos);
    }
}

[1]
https://svn.apache.org/repos/asf/poi/trunk/test-data/slideshow/table_test.pptx

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to