How to insert different header/footer in a word 2003 document programmaticaly using c#

A

Anjan

I want to insert a header for some pages in a word 2003 document generated
through automation using c#, but i want to turn off/clear the header for
some pages.

How do i keep headers in some pages but turning headers off in other pages
in the same document using c#? Please help. I am desperate and need help
immediately!

Thanks.
 
C

Cindy M.

Hi Anjan,
I want to insert a header for some pages in a word 2003 document generated
through automation using c#, but i want to turn off/clear the header for
some pages.

How do i keep headers in some pages but turning headers off in other pages
in the same document using c#? Please help. I am desperate and need help
immediately!
You first need to carefully analyze the way the document is structured. By
definition, headers and footers display on all pages. Word allows you to
differentiate in the following ways:
- You can have different odd/even pages headers
- You can have different first page headers
- You can have different headers of all three types (odd - the default if
nothing else is specified, even, first page) for every SECTION in the
document

The key to changing headers in sections is to UNLINK a header from the
previous section. (In the UI, this is called "Same as Previous".)

That's about all anyone can tell you without more information on how the
document is structured, and exactly which pages should have (or not have)
headers and footers.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top