When adding a table in word document font size and name is not kept


#1

Hello,

We have a problem with the new Aspose.Words update.

With the latest 2 builds (aspose.words.18.7.0 and aspose.words.18.6.0) the style from the table is not passed to the current document.
In the “TableDocument.docx” the table is formatted as Calibri (11) but in the final document is Times New Roman(10).

Version 17.4 does not have this issue.

In the attachment there is a project that reproduce the issue. If you put the dll files in “Aspose Check\WebApplication2\Aspose” folder the table from the second page from the output file “Aspose Check\WebApplication2\File\Test.docx” will have the incorrect format.

Thank you.

Aspose Check.zip (508.6 KB)


#2

@adrian.anton,

Thanks for your inquiry. We have tested the scenario using following code example and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-17186. You will be notified via this forum thread once this issue is resolved. We apologize for your inconvenience.

Document OneParagraph = new Document(MyDir +  "OneParagraphDocument.docx");

Document Table = new Document(MyDir + "TableDocument.docx");
OneParagraph.AppendDocument(Table, ImportFormatMode.KeepSourceFormatting);
 
OneParagraph.Save(MyDir + "18.7.docx");