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

Free Support Forum - aspose.com

DOCX save inserts invalid tblPrEx element to style

Hi Aspose team,

We encountered the following problem:

When we try to just resave the attached docx, Aspose inserts an invalid element inside the TableWeb1 table style:
<w:tblCellSpacing w:w=“20” w:type=“dxa” />

This is not valid based on the OpenXML reference, as tblPrEx is not valid inside a CT_Style element. (However, Word can open it, but it causes us problems that the resaved file is not valid.)
Our goal would be to keep the format valid.

We use the following simple code:
var doc = new Document(path);

I’ve attached the resaved file also.
Please let us know if we can provide any more details to help you investigate the issue.

Best regards,
Gergely Vándor

Hi Gergely,

Thanks for your inquiry.

While using the latest version of Aspose.Words i.e. 17.2.0, we managed to reproduce this issue on our end. We have logged this issue in our bug tracking system. The ID of this issue is WORDSNET-14969. Your thread has also been linked to the appropriate issue and you will be notified as soon as it is resolved. Sorry for the inconvenience.

Best regards,

The issues you have found earlier (filed as WORDSNET-14969) have been fixed in this Aspose.Words for .NET 17.4 update and this Aspose.Words for Java 17.4 update.

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