System.Runtime.InteropServices.COMException (0x800A03EC): Microsoft Office Excel 不能訪問文件“D:\Benz\Daimler\Benz.Win\LSHBizPlanFigure.xls”。 可能的原因有:
? 文件名稱或路徑不存在。
? 文件正被其他程序使用。
? 您正要保存的工作簿與當前打開的工作簿同名。
此問題的出現 我十分不解。
解決方案 也十分疑惑
This solution is ...
?Windows 2008 Server x64
Please make this folder.
C:\Windows\SysWOW64\config\systemprofile\Desktop
?Windows 2008 Server x86
Please make this folder.
C:\Windows\System32\config\systemprofile\Desktop
...instead of dcomcnfg.exe.
This operation took away office automation problems in my system.
A Desktop folder seems to be necessary in the systemprofile folder to open file by Excel.
It disappears from Windows2008, Windows2003 had the folder,
and I think it cause this error.
即在C:\Windows\System32\config\systemprofile和C:\Windows\SysWOW64\config\systemprofile目錄下創建名為Desktop目錄即可解決問題