How to get page number?

后端 未结 3 865
情歌与酒
情歌与酒 2021-01-19 05:13

I have this code:

Microsoft.Office.Interop.Word.Application app = new Microsoft.Office.Interop.Word.Application();
object nullobj = System.Reflection.Missing         


        
3条回答
  •  醉话见心
    2021-01-19 06:06

    Look at this example:

    http://www.c-sharpcorner.com/UploadFile/amrish_deep/WordAutomation05102007223934PM/WordAutomation.aspx

    Specifically, look at Word.WdFieldType.wdFieldPage and Word.WdFieldType.wdFieldNumPages.

提交回复
热议问题