The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
BPBhuvaneswari P Syncfusion Team November 25, 2008 08:53 AM UTC
Hi Rambabu,
Thank you for your interest in Syncfusion products.
Please use the below code snippet to remove the footer from the existing document. WordDocument document = new WordDocument(@"..\..\Doc1.doc"); HeaderFooter footer= document.Sections[0].HeadersFooters.Footer; for (int i = 0; i < footer.ChildEntities.Count; i++) footer.ChildEntities.RemoveAt(0); document.Save("sample.doc"); System.Diagnostics.Process.Start("sample.doc");
Please try this code and let us know if this helps you.