Office 365 Word可以在Windows本机应用程序中嵌入到位
我使用MFC coledocobjectitem将Office Word嵌入了.NET应用程序中。我使用doverb(oleiverb_show,...)显示字。 直到最近它运行良好,可以将单词通常嵌入到应用程序中。 但是,有了Office 365的较新版本(2204 16.0.15128.20178),Microsoft Word总是在某些Windows 10机器上弹出应用程序,但不是全部。
我们在两台机器上注意到了同一转储在MFC140U中显示出一个问题的机器: 故障应用程序名称:xxxxxxxxxxx.exe,版本:xxxx,时间戳:0x6194D628 故障模块名称:MFC140U.DLL,版本:14.10.25017.0,时间戳:0x58A64535 异常代码:0xc0000005 故障偏移:0x000000000028318D 故障过程ID:0x4304 故障应用程序开始时间:0x01d87515fd8b29c9 Faulting application path: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 故障模块路径:C:\ Windows \ System32 \ MFC140U.DLL 报告ID:AFB20B8F-5F55-4B23-992D-8C5088A8D955 故障软件包全名:错误的软件包相关应用程序ID:
看起来与另一个Microsoft Office应用程序所描述的内容非常相似: Office 365 Excel无法嵌入Windows Antival Application
我们试图卸载办公室并重新安装它,但要重新安装它,但是但是它没有解决问题。
我们试图使用Microsoft工具完全卸下办公室并重新安装它,但也没有解决该问题。
我们正在猜测一些环境问题或注册表问题,但到目前为止,我们还无法在其他机器上复制,并且我们无法弄清楚该问题可能是什么。
我们刚刚诊断出2206版构建16.0.15330.20002正在发生。
任何帮助将不胜感激。
谢谢
I embed Office Word in a .NET application using MFC COleDocObjectItem. I use DoVerb(OLEIVERB_SHOW,...) to show Word.
Until very recently it was working well, Word could be embed in place normally inside the application.
But with newer version (2204 16.0.15128.20178) of Office 365, Microsoft Word always popup out of the application on some Windows 10 machines but not all.
We noticed on two machines where the issue happened the same dump showing an issue in MFC140u:
Faulting application name: XXXXXXXXXXX.exe, version: X.X.X.X, time stamp: 0x6194d628
Faulting module name: mfc140u.dll, version: 14.10.25017.0, time stamp: 0x58a64535
Exception code: 0xc0000005
Fault offset: 0x000000000028318d
Faulting process id: 0x4304
Faulting application start time: 0x01d87515fd8b29c9
Faulting application path: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Faulting module path: C:\Windows\System32\mfc140u.dll
Report Id: afb20b8f-5f55-4b23-992d-8c5088a8d955
Faulting package full name: Faulting package-relative application ID:
That looks very similar to what is described here with another Microsoft Office application: Office 365 Excel can't be embed in place inside Windows native application
We tried to uninstall Office and reinstall it but it didn't fix the problem.
We tried to remove Office completely using Microsoft tool and reinstall it, but it didn't solve the issue either.
We are guessing some environmental issues or registry issues but so far we have not ben able to reproduce on other machines and we have not been able to figure out what the issue could be.
We just diagnosed that it is happening with Version 2206 Build 16.0.15330.20002.
Any help will be very appreciated.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
@soko,
问题与DPI有关。 MS-WORD发生了变化,以实施DPI与原地激活相关的其他相关要求。
最新版本的办公室将检查嵌入式Office应用程序的DPI值和容器应用程序的DPI值是否相等,如果找到差异办公室未打开嵌入式。
因此,您需要通过应用程序清单设置应用程序“ IE容器)的DPI意识。在配置文件中设置DPI意识是不够的。
从Microsoft检查这些文章,他们应该指向您所需的更改:
我们应用了所需的更改,现在它可以与最新版本的MS-WORD(2206及以上)一起使用。
希望这会有所帮助。
休斯
@Soko,
The issue is DPI related. There has been a change in MS-Word enforcing additional DPI related requirements for OLE in-place activation.
The most recent versions Office will check if the DPI values of the embedded Office app and the container app are equal, if a difference is found Office does not open embedded.
Therefore, you need to set the DPI awareness of your application 'i.e. container) through the manifest of the application. Setting the DPI awareness in the config file is not enough.
Check these articles from Microsoft, they should point you to the changes required:
We applied the changes required and it work now with the latest version of MS-Word (2206 and above).
Hope this will help.
Hugues