如何以编程方式更新 MS Word 2007 文档页眉中的字段(例如文件名)?
The following code only updates the fields outside the page headers.
ActiveDocument.Fields.Update
I also asked the question on MSDN Forums
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
好的,我找到了。
OK, I found it.
由于某种原因,杰弗里的回答对我不起作用。
最终,我使用大锤和炸药棒更新了页脚中的字段,如下所示:--
Geoffrey's answer did not work for me for some reason.
Eventually I got the fields updated in my footers using a sledgehammer and a stick of dynamite like so:--