ExGeordie opened a new issue, #1048:
URL: https://github.com/apache/poi/issues/1048

   Drawing borders around merged table cells in POI XLSF so that they render 
well in MS PowerPoint is very problematic. The borders produced leave many 
gaps. 
   
   This simple demonstration creates a 5 row x 3 column table of cells, merges 
the cells on the top row and gives them a red border, leaves a row as gap, then 
merges the 3 cells in the middle column and gives them a blue border. The 
result shown in PowerPoint is:
   
   <img width="460" height="256" alt="Image" 
src="https://github.com/user-attachments/assets/75d5a26a-ad6a-44a5-acc6-7fc1f1f10aa1";
 />
   
   The code to produce this was:
   
   
[MergedCellBorderProblem.java](https://github.com/user-attachments/files/26892894/MergedCellBorderProblem.java)
   
   It would be ideal if POI XSLF could internally apply the same border styling 
from the neighboring cells as this seems to be what is required to plug the 
gaps.
   
   Even with simple (non merged) cells, it was seen in 
https://bz.apache.org/bugzilla/show_bug.cgi?id=69501 that unless you're in 1st 
row or 1st column, only bottom and right edge border settings come through in 
MS PowerPoint (just setting top or left edges on cells gets ignored by 
powerpoint, even though the saved slide.xml shows that POI has written them 
out).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to