I experiance weird behavior when I set horizontalalignment to a cell:
This code:
for(int c = 0; c < output.table.columnnames.length ; c ++){
Cell headercell = cells.get(4,c+1);
headercell.setValue(output.table.columnnames[c]);
Style headerstyle = headercell.getStyle();
headerstyle.getFont().setBold(true);
headerstyle.setRotationAngle(-90);
headerstyle.setHorizontalAlignment(HorizontalAlignment.CENTER);
headercell.setStyle(headerstyle);
}
Causes the first cell to behave weird. When I remove the horizontal alignment setting things are as expected.
See the attached file for an example of the output.
Is this a bug?