Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法从 Novacode Docx 文档中获取页数?到目前为止,我发现很多属性都不是页数。
我不知道这是否是您打算做的,但一种方法是通过段落对象:
para.Append("Page ").AppendPageNumber(PageNumberFormat.normal); para.Append(" | ").AppendPageCount(PageNumberFormat.normal);