We are using the latest build of Aspose.Words downloaded just last week. We have very simple code below that combines 2 documents together from memory and are performing this 3 times to create a single document from 4 seperate DOCX files. The output is nothing like the output we get when using MS Word automation, which correctly appends each document with page breaks and does not insert extra spacing or overwrite default styles for each document, rather merges and renames or embeds them appropriately.
With Aspose.Words, it appears after appending these 4 documents we get an unexpected outcome (see attached). The GUID file name, "26fa68c4336644fb8dec41737919f762.docx" is the final output of appending the 4 documents.
public static MemoryStream CombineDocuments(MemoryStream msDstDoc, MemoryStream msSrcDoc)
msDstDoc.Position = 0;
AW.Document dstDoc = new AW.Document((Stream)msDstDoc, string.Empty, Aspose.Words.LoadFormat.Docx, string.Empty);
msSrcDoc.Position = 0;
AW.Document srcDoc = new AW.Document((Stream)msSrcDoc, string.Empty, Aspose.Words.LoadFormat.Docx, string.Empty);
MemoryStream ms = new MemoryStream();