Hi
Thanks for your request and sorry for delayed response. I managed to reproduce the problem and created new issue #7603 in our defect database.
The problem occurs because “No Spacing” style from “Cigna_CHCP - Employee.docx” is copied to destinations document not properly for some reason. As a workaround you can try using the following code:
public MemoryStream CombineDocuments(MemoryStream msDstDoc, MemoryStream msSrcDoc)
{
msDstDoc.Position = 0;
Document dstDoc = new Document((Stream)msDstDoc, string.Empty, Aspose.Words.LoadFormat.Docx, string.Empty);
msSrcDoc.Position = 0;
Document srcDoc = new Document((Stream)msSrcDoc, string.Empty, Aspose.Words.LoadFormat.Docx, string.Empty);
dstDoc.AppendDocument(srcDoc, Aspose.Words.ImportFormatMode.UseDestinationStyles);
MemoryStream ms = new MemoryStream();
dstDoc.Save((Stream)ms, Aspose.Words.SaveFormat.Docx);
return ms;
}
However this will not fully solve the problem, because first (Eligibility_EE.docx) and second (Cigna_CHCP - Employee.docx) documents contains style “No Spacing”. However, formatting defined in this style is different in first and second document. In the first document font size is 11, and in the second 10.
Best regards.
Alexey Noskov
Developer/Technical Support
Aspose Auckland Team