Support for hierarchical templates?

Dear,

Are hierarchical templates supported by Aspose words? If so, can you give me some pointers on how to implement this?

We would for instance like to have a mailmerge template which uses a template form a different .doc file to generate its headers and footers. This setup would allow us to update the headers and footers of multiple templates at once easily by updating the shared headers and footers template document.

Thanks on advance.

@jmostaer,

Generally speaking, the operations, that you can perform by using MS Word, can also be performed by using Aspose.Words for .NET API programmatically. Please refer to the following section of documentation:

The following code copies all Headers and Footers from the first Section of a Document to another Document:

Document doc = new Document("E:\\temp\\originaldocument.docx");
Document hfDoc = new Document("E:\\temp\\HeaderFooterDocument.docx");

foreach (HeaderFooter hf in hfDoc.FirstSection.HeadersFooters)
{
    HeaderFooter importedHf = (HeaderFooter)doc.ImportNode(hf, true);
    doc.FirstSection.HeadersFooters.Add(importedHf);
}

doc.Save("E:\\temp\\19.11.docx");

Please let us know if we can be of any further assistance.