Click here to Skip to main content
15,887,135 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Error 'Exception from HRESULT: 0x800A03EC' when saving an excel file in C#-ASP.NET 2
Posted
Updated 16-Sep-11 20:42pm
v4

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
 
Share this answer
 
v2
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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900