We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Table break causes the first row to have different height for each column

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,


Thanks for your inquiry. Please share your sample code to replicate the issue. We will test the scenario at our end and will guide you accordingly.

We are sorry for the inconvenience caused.

Best Regards,