Hi,
When I ask a table row to give its actual row height, it doesn't seem to correspond to the visual row height on the screen. This happens especially during overflow onto the next page, and only in case the table adds a new line in a particular cell (because it decides that the cell content is too long to fit into the available horizontal space).
Is there anything special I need to do?
Below is the overflow code I use:
private void addTable ( Table table )
{
table.setY ( currentY );
table.setHeight ( bodyBottom - currentY );
currentPage.getElements().add ( table );
for ( int i = 0 ; i < table.getVisibleRowCount() ; i++ ) {
updateY ( table.getRows().getRow(i).
getActualRowHeight() );
}
Table overflow = table.getOverflowRows();
if ( overflow != null ) {
addTable ( overflow );
}
}
updateY simply increase currentY by the argument, and adds a new page if the bottomY is exceeded.
Thanks,
Guy
getActualRowHeight
Re: getActualRowHeight
Support · Dec 9, 2005Hello Guy,
Can you please send over your entire code and the output PDF document at [^a|mailto:support@cete.com|Support^] so that we can take a look at it and see what is causing the new line to be added to the cell and also see whether the getActualRowHeight() method returns the correct value?
Thanks,
ceTe Software Support Team