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

Free Support Forum - aspose.com

Append Document - System Out Of Memory Error


I have a ,Net application(C#) That appends two documents together after they are created and the data has been mail-merged. I am getting an OutOfMemoryExceptionError.

The code used to append the spanish document to the english document:

poster.AppendDocument(langposter, ImportFormatMode.UseDestinationStyles);

I am using Version 11.2. I did test with the 14.10 dll and had the same result.


Hi Sean,

Thanks for your inquiry. After an initial test with Aspose.Words 14.10.0, I was unable to reproduce this issue on my side. I would suggest you please try running the following code. I hope, this helps.

Document doc = new Document(MyDir + @"Example_ENG.docx");
Document doc1 = new Document(MyDir + @"Example_ESP.docx");
doc.AppendDocument(doc1, ImportFormatMode.UseDestinationStyles);
doc.Save(MyDir + @"out.docx");

In case the problem still remains, please create a standalone runnable console application (source code) that helps us reproduce your problem on our end and attach it here for testing.

Best regards,