Free Support Forum - aspose.com

Remove Pagenumber from Footer

Hello,
I would like fill out same fields into a mailmerge. The mailmerge template is only one page which contains a footer. The footer contains not pagenumbers / total pages.

I create the new Document as follow:
Document doc = new Document();
doc.Sections.Clear();

doc.MailMerge.Execute(); // or doc.MailMerge.ExecuteWithRegions(subData);
When I open the created document, pagenumber / total pages shows into footer.
How can remove / disable the pagenumbers / pages during the mailmerge process?

Best regards
turnschuh

Hello

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your inquiry. I cannot reproduce the problem on my side using the latest version of Aspose.Words (9.3.0). Could you please create simple application, which will demonstrate the problem on my side? I will check it and provide you more information.

Best regards,

Hello AndreyN,
thanks for your answer. I have some files packed into zip archive and hope, you can help me.

Best regards
turnschuh

Hello,
I forget to send my aspose.words version. It is 8.0.0.0

turnschuh

Hello

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thank you for additional information. If you open original1.doc, press Alt-F9 (to see field code) and move to footer, you will see PAGE and NUMPAGES fields (please see the attached screenshot). To fix the problem just remove these fields.

Best regards,

Hello AndreyN,
ooh no, what for a simple solution! I would like keep in mind this shortcut.

Thanks for your help
turnschuh