usmanazizgroupdocs
5/9/2017 - 3:11 PM

SetDifferentFirstPageHeaderFooter.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)))
{
    doc.Sections[0].PageSetup.DifferentFirstPageHeaderFooter = true;
    doc.Sections[0].PageSetup.OddAndEvenPagesHeaderFooter = true;
    doc.Save();
}