문제

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

도움이 되었습니까?

해결책

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
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top