相关疑难解决方法(0)

System.Runtime.InteropServices.COMException(0x800A03EC)

Microsoft.Office.Interop.Excel.WorkbookClass.SaveAs() 方法在Windows Server 2003上运行正常,也在XP上运行,但在Windows Server 2008上没有.我复制它,因为它给了所有的Dll和权限

我还尝试了网上提供的所有解决方案,例如文化设置和DCOM权限.

获得以下错误:

System.Runtime.InteropServices.COMException(0x800A03EC):来自HRESULT的异常:0x800A03EC

Microsoft.Office.Interop.Excel.WorkbookClass.SaveAs(Object Filename,Object FileFormat,Object Password,Object WriteResPassword,Object ReadOnlyRecommended,Object CreateBackup,XlSaveAsAccessMode AccessMode,Object ConflictResolution,Object AddToMru,Object TextCodepage,Object TextVisualLayout,Object Local)

请帮忙 ..!

.net com iis excel-interop

29
推荐指数
3
解决办法
11万
查看次数

使用C#代码打开Excel工作簿时出错

我正在尝试打开一个excel工作簿并尝试在其中获取工作表.Excelapp.workbooks.Open行正在抛出异常

来自HRESULT的System.Runtime.InteropServices.COMException:Microsoft.Office.Interop.Excel.Workbooks.Open中的0x800A03EC

这是我的代码:

Excel.Application excelApp = new Excel.ApplicationClass();
Excel.Workbook excelWorkbook = excelApp.Workbooks.Open(strWBPath, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing,Type.Missing, Type.Missing, Type.Missing, true);
Run Code Online (Sandbox Code Playgroud)

StrWbPath是我的Excel位置.我正在引用2007 excel并添加了版本12.0.0.0的Microsoft.office.interop.excel.

c# excel-2007

8
推荐指数
2
解决办法
2万
查看次数

标签 统计

.net ×1

c# ×1

com ×1

excel-2007 ×1

excel-interop ×1

iis ×1