Table problems in Aspose.Words 10.5

Hello,

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

docBuilder.getRowFormat().setHeight(ConvertUtil.millimeterToPoint(height))

The table is set to table.setAllowAutoFit(false)

Any ideas what is going wrong here?

Kind regards
Jan

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,

This issue is worth a hotfix… ALL of our tables are screwed. We can’ t use this version of Aspose.Words. It’ s completly useless!

I hope you think about releasing a hotfix for this issue.

Kind regards
Jan

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().

Kind regards,
Jan

Hi Jan,

Thanks for your inquiry.

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.

Thanks,

Ok that workaround works for me.
Now I’ve another table which is totally screwed up.

I’ll try to investigate now what happens with that table.

Thanks for your help!

Kind regards,
Jan

The issues you have found earlier (filed as WORDSNET-5322) have been fixed in this .NET update and this Java update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.