Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files from any .NET platform (C#, VB.NET, ASP.NET, .NET Core) and Java applications (J2SE and J2EE) with fast and high quality performance.

Tue Feb 22, 2011 7:07 am

I have added the header and footer on my Word documents. But now, I need to replace the hearder and footer, how should I do? And if I want to delete the hearder and footer, how?

Posts: 9
Joined: Thu Dec 23, 2010 2:45 am

Fri Mar 04, 2011 3:01 am

You can do it by using footerparagraph.Replace() method.
And the following five parameters should be used: string given, textSelection, bool caseSensitive, bool wholeWord, bool saveFormatting.
e-iceblue support
User avatar

iceblue support
Posts: 240
Joined: Tue Dec 21, 2010 2:56 am

Return to Spire.Doc