How to page a word document for example if there are 10 pages: page 1 of 10 Page 2 of 10 ... if there are 15 pages 1 of 15 Page 2 of 15 ... and so on to generate a dynamic number of pages
This can be done by adding a Header or Footer with the correct fields for page numbering. If you are not sure how to do that, create a document using Word that looks the way you want, then examine the XML.