title: How to insert document page number in a header with word addin?
body: <p>I know how to insert footer and header, but I wonder how can I insert page number with with my word addin? </p>
  
  <pre><code>'Word.run(function (context) {
   var mySections = context.document.sections;
   context.load(mySections, 'body/style');
   return context.sync().then(function () {var myFooter = 
     mySections.items[0].getFooter("primary");
     myFooter.insertParagraph(footerText.value, "End");
                  return context.sync().then(function () {
                      console.log("Added a footer to the first section.");
                  });
              });
  
  '
  </code></pre>