我需要從Powershell讀取Excel文件。
我使用這個對象:
ComObject Excel.Application without Office Suite
$objExcel=New-Object -ComObject Excel.Application
它工作正常的機器上的Office安裝,但如果未安裝Office,我得到這個錯誤:
Retrieving the COM class factory for component with CLSID {} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
有一些運行時環境供Office使用?
謝謝,但與瀏覽器沒有運氣,同樣的錯誤 –