Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

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?

Mortimer
 
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