Free Support Forum - aspose.com

Merge multiple word documents using AppendDocument

Hello Aspose Team,

We are using aspose word api. We have lots of word documents. We want to merge all the documents into one document using template document(Template: it contains our own style and headings)

We have merged document using ‘document.AppendDocument’ method.
In word api, we have found another method ‘document1.FirstSection.AppendContent(document2.FirstSection)’ method.

Shall we use ‘AppendContent’ instead of ‘AppendDocument’? Is this will improve performance? Could you please give some suggestions?

Thanks in Advance,
Mani.

@manig

Thanks for your inquriy. Please note AppendContent method is used to only copy contents of a section. It does not copy page setup and header/footers of section. To append/merge documents it is suggested to use AppendDocument method instead of AppendContent.

Please feel free to contact us for any further assistance.