Hi again,
Just tried the following code:
if (browser.isBrowser(TEBrowserIdentity.BROWSER.CHROME)) {
Iterator<Cell> cells = iSheets.getSheet(0).getCells().getCellIterator();
while (cells.hasNext()) {
Cell cell = cells.next();
Style style = cell.getStyle();
style.setBorderLine(BorderType.TOP, BorderLineType.MEDIUM);
style.setBorderLine(BorderType.BOTTOM, BorderLineType.MEDIUM);
style.setBorderLine(BorderType.LEFT, BorderLineType.MEDIUM);
style.setBorderLine(BorderType.RIGHT, BorderLineType.MEDIUM);
cell.setStyle(style);
}
}
and the borders are showing nicely in Chrome.
However, there is one problem. Executing the code above turns all borders black, even the previously white borders in the example file attached to this thread. Am I doing something wrong or is it a bug?
Thanks for looking into this.
Best regards,
Ulf