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.
我正在处理的应用程序将文档输出为 rtf 格式,并且 PAGEREF 字段用于目录页和索引页。问题是在打开文档时,字段不会更新并保持空白。如果您手动更新 Word 中的字段,它们可以正常工作。有没有办法让这些字段在 RTF 规范中自动更新?
您可以尝试创建 Document_Open() 宏,尽管您可能无法将宏添加到 rtf 文件。您也许可以在模板 (.dot) 中添加宏并让 .rtf 文件引用该模板。
Private Sub Document_Open() End Sub