usmanazizgroupdocs
4/17/2017 - 9:11 AM

LinkHeaderFooterInSection.cs

// For complete examples and data files, please go to https://github.com/groupdocs-watermark/GroupDocs.Watermark-for-.NET
using (WordsDocument doc = Document.Load<WordsDocument>(Utilities.MapSourceFilePath (FilePath)))
{
    // Link footer for even numbered pages to corresponding footer in previous section
    doc.Sections[1].HeadersFooters[OfficeHeaderFooterType.FooterEven].IsLinkedToPrevious = true;

    doc.Save();
}