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

Free Support Forum - aspose.com

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<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

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.

http://www.aspose.com/documentation/file-format-components/aspose.words-for-.net-and-java/append-one-document-to-another.html

Best regards.