Skip to content

XSLF Merged Table Cell Border gaps #1048

@ExGeordie

Description

@ExGeordie

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:

Image

The code to produce this was:

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions