有没有办法用 C# 修改 MS Office 选项?

发布于 2025-01-11 05:22:56 字数 690 浏览 2 评论 0原文

我还可以使用 powershell、注册表或 c# 有权访问的任何其他内容,但目标是修改 MS Office 的设置。具体来说,这些:

https://www.howtogeek.com/155803/how-to-change-the-default-paste-setting-in-microsoft-word-2013/

解决方法很棒,这意味着我必须记住在我使用的每台计算机上执行此操作,而不是运行一个干净的程序来同时调整此设置和我的其他设置(我正在编写一个工具来撤消烦人的系统默认设置) 。

一组合理的默认值可能如下所示:

在此处输入图像描述

最重要的是,切勿粘贴格式,除非它来自和到同一文档。

我目前正在 Visual Studio 中使用带有 MS Office 扩展的 WPF 项目(或者首次安装它并包含 Office 内容时的任何名称)

I can additionally use powershell, the registry, or anything else that c# has access to, but the goal is to modify settings for MS Office. Specifically, these ones:

https://www.howtogeek.com/155803/how-to-change-the-default-paste-setting-in-microsoft-word-2013/

While having a work-around is great, that means I have to remember to do this on every computer I use instead of running a clean program that adjust this along with my other settings all at once (I'm writing a tool to undo annoying system defaults).

A reasonable set of defaults would probably look like this:

enter image description here

Bottom line, NEVER paste with formatting unless it's from and to the same document.

I'm currently using a WPF project in Visual Studio with MS Office extensions (or whatever it's called when you first install it and include the office stuff)

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文