Office.Interop - 访问 MS Word 高级选项
Office.Interop - Access MS Word Advanced options
我想以编程方式 (C#) 更改 MS Word 高级选项:"Do not compress images in file" 使用 Office.Interop。
我该怎么做。
我已经查看了 the MSDN Library,但没有找到我需要的东西。
抱歉,"Do not compress images in file" 选项无法通过 VBA 对象模型访问。
虽然您可以使用 SendKeys,但这样做并不可靠 - 除其他外,您只能使用 SendKeys 切换设置;您无法测试它的当前状态或将其设置为特定状态,并且访问它所需的击键顺序可能会根据用户安装的语言和正在使用的 Word 版本而改变。
具有更多信息的另一个来源(在 Powerpoint 上,但它的工作方式与 Word 完全相同):
https://answers.microsoft.com/en-us/msoffice/forum/msoffice_powerpoint-mso_other/vba-turn-off-auto-compression/9548f7c0-894d-4e76-acc1-4985df08fd50
我想以编程方式 (C#) 更改 MS Word 高级选项:"Do not compress images in file" 使用 Office.Interop。
我该怎么做。
我已经查看了 the MSDN Library,但没有找到我需要的东西。
抱歉,"Do not compress images in file" 选项无法通过 VBA 对象模型访问。
虽然您可以使用 SendKeys,但这样做并不可靠 - 除其他外,您只能使用 SendKeys 切换设置;您无法测试它的当前状态或将其设置为特定状态,并且访问它所需的击键顺序可能会根据用户安装的语言和正在使用的 Word 版本而改变。
具有更多信息的另一个来源(在 Powerpoint 上,但它的工作方式与 Word 完全相同): https://answers.microsoft.com/en-us/msoffice/forum/msoffice_powerpoint-mso_other/vba-turn-off-auto-compression/9548f7c0-894d-4e76-acc1-4985df08fd50