Hi there,
I have a problem with a breaking table:
The first row on the new page will have different column/cell heights for each of them.
Follwing code shows how I build my table:
for(ArrayList row : scmtTable.getTableData()) {
asposeRow = asposeTable.getRows().add();
for(Object cellData : row) {
asposeRow.getCells().add((cellData == null) ? “” : cellData.toString(), cellText).setPadding(cellTextMargins);
}
}
Attached you’ll find a screenshot of the document where this happens.
Any ideas?
Would appreciate if you would point me in the right direction.
Sincerly,
Lucian.
EDIT:
Problem can be solved like this:
asposeRow.getCells().add((cellData == null) ? " " : cellData.toString(), cellText).setPadding(cellTextMargins);
Simply replace “” with " " (blank).
Regardless, this is in my opinion annoying an I would consider it a bug.
Hi Lucian,