Hi
Section section = headerFooterSourceDocument.FirstSection;<o:p></o:p>
//int importFormatMode = (keepSourceFormat) ? ImportFormatMode.KeepSourceFormatting: ImportFormatMode.UseDestinationStyles;<o:p></o:p>
// Remove all HeaderFooter of the target document for each<o:p></o:p>
// Section<o:p></o:p>
for (int s = 0; s < document.Sections.Count; s++)<o:p></o:p>
{<o:p></o:p>
if (document.Sections[s].HeadersFooters != null)<o:p></o:p>
{<o:p></o:p>
while (document.Sections[s].HeadersFooters.Count != 0)<o:p></o:p>
{<o:p></o:p>
document.FirstSection.HeadersFooters.RemoveAt(0);<o:p></o:p>
}<o:p></o:p>
}<o:p></o:p>
}<o:p></o:p>
<o:p> </o:p>
document.FirstSection.PageSetup.DifferentFirstPageHeaderFooter = section.PageSetup.DifferentFirstPageHeaderFooter;<o:p></o:p>
document.FirstSection.PageSetup.OddAndEvenPagesHeaderFooter = section.PageSetup.OddAndEvenPagesHeaderFooter;<o:p></o:p>
// Add content to the document (Import all HeaderFooter)<o:p></o:p>
for (int i = 0; i < section.HeadersFooters.Count; i++)<o:p></o:p>
{<o:p></o:p>
// Import HeaderFooter<o:p></o:p>
<o:p> </o:p>
Node node = document.ImportNode(section.HeadersFooters[i], true,ImportFormatMode.KeepSourceFormatting);<o:p></o:p>
// Insert header footer into the first section of<o:p></o:p>
// document<o:p></o:p>
document.FirstSection.HeadersFooters.Add(node);<o:p></o:p>
}<o:p></o:p>
<o:p> Hope this will help.</o:p>