错误"检索COM类工厂具有CLSID&QUOT组成部分;启动Excel的时候 [英] Error "Retrieving the COM class factory for component with CLSID" when starting Excel

查看:251
本文介绍了错误"检索COM类工厂具有CLSID&QUOT组成部分;启动Excel的时候的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我运行PowerShell的64位机。该行

I am running PowerShell on 64-bit machine. The line

$excel = New-Object -ComObject Excel.Application

给出了错误

New-Object : Retrieving the COM class factory for component with CLSID
{00000000-0000-0000-0000-000000000000} failed due to the following error:
80040154 Class not registered (Exception from HRESULT: 0x80040154
(REGDB_E_CLASSNOTREG)).

我研究,并试图运行 powershell_ise.exe

C:\Windows\SysWOW64\WindowsPowerShell\v1.0

作为解释<一个href="http://www.tellingmachine.com/post/Help!-My-COM-object-fails-to-load-from-the-PowerShell-ISE-with-error-80040154.aspx"相对=nofollow>此处,但我仍然得到错误。

as explained here, but I still get the error.

推荐答案

那么,在这里它是那么:您必须安装Office 64

Well, here it is then: you have to install Office 64bit.

这篇关于错误&QUOT;检索COM类工厂具有CLSID&QUOT组成部分;启动Excel的时候的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆