Hi. I found sometimes API return a wrong border style for merged cell. Check out please following example. Is there is some way to get correct result?
@Test
public void borderTest() throws Exception {
Workbook wb = new Workbook("D://in.xlsx");
Cell cell = wb.getWorksheets().get(0).getCells().get("G21");
int lineStyle = cell.getDisplayStyle().getBorders().getByBorderType(BorderType.LEFT_BORDER).getLineStyle();
Assert.assertEquals(CellBorderType.THIN, lineStyle);
}
in.zip (16.2 KB)
Best regards. Alexey