在C#-ASP.NET 2中保存Excel文件时出现错误“来自HRESULT的异常:0x800A03EC" [英] Error 'Exception from HRESULT: 0x800A03EC' when saving an excel file in C#-ASP.NET 2

查看:76
本文介绍了在C#-ASP.NET 2中保存Excel文件时出现错误“来自HRESULT的异常:0x800A03EC"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在C#-ASP.NET 2中保存excel文件时出现错误"HRESULT异常:0x800A03EC".

Error ''Exception from HRESULT: 0x800A03EC'' when saving an excel file in C#-ASP.NET 2

推荐答案

首先检查应用程序是否具有写入文件夹的权限?
如果您有权限,请检查此链接;


http://www.made4dotnet.com/Default.aspx?tabid=141&aid=15 [^ ]
如果那不能解决问题,也许您正在尝试保存256列以上的数据. XLS文件仅支持256列数据.您可能需要;

更改数据矩阵,使其数据少于256列,

写入XLSX文件.新的XLSX文件格式支持更多列数据

祝你好运
First of all check if the application have permissions to write to the folder?
If you have permissions, check this link;


http://www.made4dotnet.com/Default.aspx?tabid=141&aid=15[^]
If that didnt solve maybe you are trying to save more than 256 columns of data. XLS files only support 256 columns of data.You may want to;

Change the data matrix such that it had fewer than 256 columns of data,
or
write to XLSX file. The new XLSX file format supports many more columns of data

Good luck


Does this Thread help you? According to it, one user solved it and this was his comment:

I''ve also experienced the same problem after moving my site from Server 2003 to 2008. It''s a curious fact that "SaveCopyAs" method works fine. The only problem with it is that it takes only one parameter - the filename. You supply Type.Missing for almost all other params, so it''ll probably do for you.


这篇关于在C#-ASP.NET 2中保存Excel文件时出现错误“来自HRESULT的异常:0x800A03EC"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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