since the new AW release 10.5 I have a few problems regarding tables. The first big problem I’m currently noticing is that when I try to set the height of a row it is just ignored. I use setHeightRule(HeightRule.EXACTLY) and set the height using
Hi
Thank you for reporting this problem to us. I managed to reproduce the problem on my side. Your request has been linked to the appropriate issue. You will be notified as soon as it is resolved.
Best regards,
Do you have any idea how to work around this issue? Because I’ve seen a table where setHeight() works.
So there must be something that influences the behavior of setHeight().
I believe you can work around this issue by moving any row formatting calls (modifying members of RowFormat) to after the first instance of InsertCell for the rows in your table.
For example, this code:
// Insert a cell
docBuilder.InsertCell();
docBuilder.Writeln("This is row 2 cell 2");
docBuilder.EndRow();
// Apply new row formatting
docBuilder.RowFormat.ClearFormatting();
docBuilder.RowFormat.Height = 50;
// Row 2
// Insert a cell
docBuilder.InsertCell();
docBuilder.Writeln("This is row 2 cell 1");
Needs to be changed to:
// Insert a cell
docBuilder.InsertCell();
docBuilder.Writeln("This is row 2 cell 2");
docBuilder.EndRow();
// Row 2
// Insert a cell
docBuilder.InsertCell();
// Apply new row formatting
docBuilder.RowFormat.ClearFormatting();
docBuilder.RowFormat.Height = 50;
docBuilder.Writeln("This is row 2 cell 1");
If you are having any further troubles could you please attach your code here for testing?
Regarding your request for a hotfix, I have forwarded your request.