获取Word总页数的3种方法

  1. 方法一:
thisDocument.Windows(1).Panes(1).Pages.Count
  1. 方法二:
thisDocument.Range.Information(wdNumberOfPagesInDocument)
  1. 方法二:
thisDocument.BuiltInDocumentProperties(wdPropertyPages)
posted @ 2025-08-31 14:41  python_learn  阅读(41)  评论(0)    收藏  举报