Search code examples
c++interopms-wordmanaged

Getting page number from a Word document


I want to create an index page for which I need the page number from the Word document. I am working with C++ managed code and Word interop.


Solution

  • See here for info on this. This is for C#, but the classes are all available in C++/CLI.

    There is page number info info here for including page numbers in a footer, and also on handling Table of Contents.