我可以将 Word 文档设置为在打开时自动启用宏并将其自动保存到服务器吗?

发布于 2024-07-30 06:21:50 字数 122 浏览 0 评论 0原文

我有一个 Web 应用程序,我在其中上传包含宏的 Word 文档。 下载并打开此文档后,我希望启用宏,因为我的大多数用户都没有启用宏。 我可以在打开文档时启用宏吗? 或者是否有另一种方法可以实现关闭时自动将文档保存到服务器?

I have a web application in which I upload my Word document that contains a macro. When this document is downloaded and opened, I want the macro to be enabled because most of my users don't have macros enabled. Is it possible for me to enable a macro while the document is opened? Or is there another way of implementing automatic saving of the document to the server on close?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

骑趴 2024-08-06 06:21:50

不,如果用户选择不启用宏,则您的宏不可能神奇地启用宏。 这就是宏观安全的重点。 用户拥有控制权,而不是您的代码。 如果您的宏可以重新启用宏,那么用户禁用宏有什么意义呢?

我不知道你的第二个问题是什么意思。

No, it is not possible for your macro to magically enable macros if the user has chosen not to enable them. That's the point of macro security. The user has the control, not your code. What would be the point of the user disabling macros if your macro could just reenable them?

I don't know what you mean by your second question.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文