You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2018/07/03 09:33:19 UTC
[Bug 62431] Regarding the removal of Border from the XSLFTableCell
incase of Merge
https://bz.apache.org/bugzilla/show_bug.cgi?id=62431
--- Comment #5 from sakshijuyal12690@gmail.com ---
int colspan = Integer.parseInt(cellStyle.getColSpan());
int finalcolSpan = colspan;
boolean isMergeRequired = false;
while(finalcolSpan > 1) {
XSLFTableCell cell1 = contentRow.addCell();
setCellHeight(cellStyle, contentRow, pageHeight);
isMergeRequired = true;
finalcolSpan--;
if (isMergeRequired) {
tb1.mergeCells(rowNum, rowNum, colIndex, colIndex+colspan-1);
}
// failing at this line
XSLTableCell cell = tb1.getCell(1,2);
cell.setBorderColor(BorderEdge.bottom, Color.RED);
When I am trying to manually get the Cell from the table and apply Border Color
to the Cell and when I am trying to open the ppt, I am getting a pop up that
power point detected a problem an is attempting to repair it and when I finally
open the ppt, I cannot see the changes.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org