如何防止Excel想要以安全模式启动?

发布于 2024-08-28 23:30:05 字数 356 浏览 2 评论 0原文

我们有一个后台进程调用 Excel 来生成报告电子表格。有时,Excel 运行时会发生崩溃或服务器意外重启。重新启动后首次启动 Excel 会弹出对话框(此处解释)“您想以安全模式启动 Excel 吗?” (是/否)

问题是我们的后台应用程序无法处理此对话框,并且表现得好像 Excel 无法正常启动,因此后台作业失败。

我可以找到在安全模式下启动 Excel 的 CL 开关,但我找不到任何指示 Excel 在没有提示对话框的情况下始终在正常模式下启动的内容。

(我无权访问其他程序的代码,因此如果它进入该框,我无法使其通过“是”值。)

是否有注册表破解或其他方式可以强制 Excel 正常运行每次调用时都模式?

We have a background process that calls Excel for generation of report spreadsheets. Occasionally, a crash or inadvertent server reboot will occur while Excel is running. The first launch of Excel after the restart brings up the dialog box (paraphrasing here) "Would you like to start Excel in safe mode?" (Yes/No)

The issue is that our background app can't handle this dialog box, and acts as if Excel will not start properly, and the background jobs fail as a result.

I can find CL switches for starting Excel in safe mode, but I can't find anything that will instruct Excel to always start in normal mode without that prompt dialog.

(I don't have access to the other program's code, so I can't make it pass through a "Yes" value if it runs into that box.)

Is there a registry hack or some other way I can force Excel into normal mode every time it's called?

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

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

发布评论

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

评论(2

卖梦商人 2024-09-04 23:30:05

我刚刚遇到了这个问题,我使用 Excel 开关修复了它。您可以在此处找到更多信息 https://support.microsoft.com/en-us/kb /291288

尝试在启动 Excel 时添加“/e”,例如:

EXCEL.exe /e "C:\My Documents\File.xls"

应该可以解决问题!

I just had this problem, I fixed it using Excel switches. You can find more info here https://support.microsoft.com/en-us/kb/291288

Try adding "/e" when starting Excel, for example:

EXCEL.exe /e "C:\My Documents\File.xls"

That should do the trick!

晚风撩人 2024-09-04 23:30:05

我怀疑是否会有一个开关来阻止 excel 在安全模式下打开,因为安全模式是一种恢复机制,如果 excel 崩溃,它必然会被激活。

I doubt if there would be a switch to prevent excel from opening in safe mode, since safe mode is a recovery mechanism its bound to be activated if excel experiences a crash.

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