You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

求助:是否有人遇到VSTO与Windows 11更新KB5031354的剪贴板问题?

Windows 11更新KB5031354/KB5030310后Office剪贴板访问触发COM组件E_FAIL错误
  • 安装Windows 11的KB5031354正式更新或KB5030310预览更新后,在Office程序内执行复制操作后直接访问剪贴板,会触发错误:Error HRESULT E_FAIL has been returned from a call to a COM component.
  • 更新前无此问题,卸载上述更新后功能可恢复正常

测试场景与复现代码

PowerPoint测试(最后一行代码触发崩溃)

Dim vApp As PowerPoint.Application = Globals.ThisAddIn.Application
vApp.ActiveWindow.Selection.Copy()
Dim vText As String = DirectCast(Windows.Clipboard.GetDataObject(), Windows.DataObject).GetText()

Excel测试

Dim vRange As Range = vApp.Selection
vRange.Copy()
Dim vText As String = DirectCast(System.Windows.Clipboard.GetDataObject(), System.Windows.DataObject).GetText()

疑问

是否有其他用户也遇到了该更新导致的剪贴板访问问题?

内容的提问来源于stack exchange,提问作者Lyndon Brooke

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.08 17:32:01