Add Header and Footer to the document

Hello,
Is there any way in which i can add header and footer to all the pages in the document. I am using mail merge functionlaity too in my template. It seems like headers are not supported on pages that have mail merge feature. Can you suggest a way to overcome this?
Also i have seen that headers can be added easily to PDFs. However, there is no documentation for adding it to the document.
Thank you,

1 Reply

MR Manikandan Ravichandran Syncfusion Team March 2, 2020 09:10 AM UTC

Hi Wlipein,

Thank you contacting Syncfusion support.

Yes, you can add headers and footers in the Word document. We have prepared the sample to add headers and footer in the document and it can be downloaded from the following link.
https://www.syncfusion.com/downloads/support/forum/152016/ze/CreateWordSample326053593

In this sample we have done the following.
1. Loaded the template document.
2. Performed mail merge using ExecuteNestedGroup API.
3. Iterated each section and add header and footer
4. Saved the word document.

To know more about headers and footer, please refer our UG documentation from the following link.
https://help.syncfusion.com/file-formats/docio/working-with-sections?cs-save-lang=1&cs-lang=csharp#working-with-headers-and-footers

If you think, we misunderstood any of your requirement, then kindly provide us modified sample of the above along with input template document, screenshot/output document of the expected result which will helpful to provide you the appropriate solution at the earliest

Please let us know if you have any other questions.

Regards,
Manikandan Ravichandran


Loader.
Up arrow icon