usmanazizgroupdocs
4/17/2017 - 10:03 AM

ClearSectionOfHeaderFooterExcel.cs

// For complete examples and data files, please go to https://github.com/groupdocs-watermark/GroupDocs.Watermark-for-.NET
using (CellsDocument doc = Document.Load<CellsDocument>(Utilities.MapSourceFilePath (FilePath)))
{
    CellsHeaderFooterSection section = doc.Worksheets[0]
       .HeadersFooters[OfficeHeaderFooterType.HeaderEven]
       .Sections[CellsHeaderFooterSectionType.Left];
    section.Image = null;
    section.Script = null;

    doc.Save();
}