Display number of pages in Word ML

孤街醉人 提交于 2019-12-24 02:33:12

问题


I want to display total number of pages on the first page of word document, that is formin with WORD ML template. I know how to display current page number and total number of pages in a footer. It looks like:

<w:ftr w:type="odd">
     <w:p>
        <w:r wsp:rsidRPr="007924AD">
           <w:rPr>
              <w:rStyle w:val="a6" />
                 <w:color w:val="777777" />
           </w:rPr>
           <w:instrText> PAGE </w:instrText>
         </w:r>
    </w:p>
</w:ftr>

But how can I display PAGE or NUMPAGES not in a footer but in the body of a page? Is it possible?


回答1:


I solved the problem. The field NUMPAGES is forming correctly but the number of pages is not updated automatically. You must force it update in one of the following ways:

click on the autofield and and select update field from the context menu print preview the document - the field will be updated save the document as pdf, for example



来源:https://stackoverflow.com/questions/19830073/display-number-of-pages-in-word-ml

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!