Document merging with consistent styles and headings/footers

Hi,
I have to create a master document that consists of combining 25-30 documents. Each of the documents falls into one of five categories. Each category has it’s own definition of styles for headings, and heading/footer information.
I’ve read through the documentation but have not really seen a way to do this. Applying styles to headings is briefly touched on. Being somewhat new to .Net a code example (C#) would really help.
Thanks.

Hi
Thanks for your request. You should define styles that will be used in all groups of document in your master documents. Names of styles should be same as in sub documents. Then you should use AppendDocument method as shown below.

doc.AppendDocument(srcDoc, ImportFormatMode.UseDestinationStyles);

I hope this could help you.
Also see the following link for more information.
https://docs.aspose.com/words/net/insert-and-append-documents/
Best regards.