我在 aspx 页面上使用 word 自动化类来打开和编辑 word 文件。问题是每次代码点击打开的应用程序行时,我都会收到以下错误:
Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80070005 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).
对于这个问题,我环顾四周,并尝试了 DCOMCONFIG 设置。问题是,我的电脑下不存在 Microsoft Word 应用程序设置。有没有办法解决这个最令人沮丧的问题?或者是否有另一种方法可以在不使用单词 iterop 的情况下执行此单词自动化?