Free Support Forum - aspose.com

Page numbers as footers

hi <br>I am using Aspose.Words and I was just wondering how do we insert page numbers and current date as a footer in the doc programmatically.<br><br>Thanks <br><br>

Hi

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

Thanks for your inquiry. You should use DocumentBuilder to achieve this.

http://www.aspose.com/documentation/.net-components/aspose.words-for-.net-and-java/howto-create-headersfooters-using-documentbuilder.html

Page number and pages count are inserted into the document as fields. You can insert fields into a document using DocumentBuilder. So you should use this approach.

Best regards,