Question

How to paginate 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

Was it helpful?

Solution

refer How to paginate a Word document from c# with Open XML in more

if you can generate xml for it.

  • Create a New Word Document,
  • set Pagination into that.
  • save the document as XML see tags for pagination. you might find something like footer1.xml
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top