Ask Dr. Dotnetsky - add page counter to word doc footer using vb net

Asked By Kevin Scott on 06-Jul-06 10:40 AM
Does anyone know how I can add a page counter to the footer of a word document using

Word automation alternative - Asked By mv ark on 07-Jul-06 06:38 AM

Documents can be converted from Word to HTML (File->Save As) and VICE VERSA. Create a sample Word document with page number and save it as a "Web Page". Inspect the header.htm file that is created in an accompanying folder for the style related to page numbering in footer and adapt your code as per the article "Dynamically generate a MS Word document using HTML & CSS" - which talks about using Office XML style settings.

This is a lightweight alternative to using Word automation, the demerits of which are discussed here -