我可以将 Word 文档设置为在打开时自动启用宏并将其自动保存到服务器吗?
我有一个 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不,如果用户选择不启用宏,则您的宏不可能神奇地启用宏。 这就是宏观安全的重点。 用户拥有控制权,而不是您的代码。 如果您的宏可以重新启用宏,那么用户禁用宏有什么意义呢?
我不知道你的第二个问题是什么意思。
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.