UpdateFields() unexpected changed table layout

Hi,

When calling UpdateFields() using Aspose.Words, the table layout has changed with an extra column and the updated text was in the wrong font. While if I used Ctrl + A and F9 in Word, the field is updated properly.

Code:
var doc = new Document(@".\Test.docx");
doc.UpdateFields();
doc.Save(@".\out.docx");

I’ve attached the test files and a screenshot for your reference. Could you please help me take a look?

tests.zip (51.1 KB)
image.png (41.4 KB)

Thanks,

@ServerSide527

We have tested the scenario using the latest version of Aspose.Words for .NET 19.5 and have not found the shared issue. So, please use Aspose.Words for .NET 19.5. We have attached the output DOCX with this post for your kind reference.
19.5.zip (15.8 KB)

Hi,

Thank you for your update. I have just tried using the latest version 19.5.0 and it indeed seems to be working now! I was using the version a month earlier.

Thanks again,

@ServerSide527

Please feel free to ask if you have any question about Aspose.Words, we will be happy to help you.