【发布时间】:2018-10-14 02:40:55
【问题描述】:
我正在使用 OPEN XML SDK Framework 从 C# 在 MS Word 中创建目录。每次打开文档时创建 docx 后,它都会向我显示消息 This document contains fields that may refer to other files. Do you want to update the fields in this document ?。
我不希望用户每次打开文档时都看到此消息。是否有任何替代方法可以在不通过取消选中单词设置的路径的情况下实现相同而没有警告消息。
【问题讨论】:
-
这是出于安全措施。避免该消息的唯一方法是使用 Sharepoint 中的 Word Automation Services 打开文档。
标签: c# ms-word openxml tableofcontents