Powershell,excel 2003和'类型库'例外

时间:2012-03-12 05:04:48

标签: excel powershell excel-2003

我写了一些简单的PowerShell脚本:

$excel = New-Object -com Excel.Application
$excel.Workbooks.Open("C:\temp\mybook.xls")

它在PC上运行正常。

然而,当我的同事运行它时,他得到了这个例外

    Old format or invalid type library. (Exception from HRESULT: 
0x80028018 (TYPE_E_INVDATAREAD))

此错误消息的含义是什么?

0 个答案:

没有答案